core,w32: Increase BUFFER_SIZE to 4096

* src/data.h (BUFFER_SIZE): Increase to 4096 for Windows.

--
This brings it in line to the PIPE_BUF size on desktop Linux
systems. This should increase performance when working with
large files on Windows a bit.

GnuPG-Bug-Id: T5478
This commit is contained in:
Andre Heinecke 2021-06-10 15:33:51 +02:00
parent e6095e5471
commit ceb8387460
No known key found for this signature in database
GPG Key ID: 2978E9D40CBABA5C

View File

@ -82,8 +82,12 @@ struct gpgme_data
#ifdef _POSIX_PIPE_BUF
#define BUFFER_SIZE _POSIX_PIPE_BUF
#else
#ifdef HAVE_W32_SYSTEM
#define BUFFER_SIZE 4096
#else
#define BUFFER_SIZE 512
#endif
#endif
#endif
char pending[BUFFER_SIZE];
int pending_len;