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:
parent
e6095e5471
commit
ceb8387460
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user