From ceb8387460b05de5c8cec6e02950176b09c4f38b Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Thu, 10 Jun 2021 15:33:51 +0200 Subject: [PATCH] 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 --- src/data.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/data.h b/src/data.h index 481a245e..90e0a883 100644 --- a/src/data.h +++ b/src/data.h @@ -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;