aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2021-06-10 13:33:51 +0000
committerAndre Heinecke <[email protected]>2021-06-10 13:33:51 +0000
commitceb8387460b05de5c8cec6e02950176b09c4f38b (patch)
treec4dedf4e3918d8455826e3fc828f3b88c929b860
parentqt: Explicitly link libgpg-error (diff)
downloadgpgme-ceb8387460b05de5c8cec6e02950176b09c4f38b.tar.gz
gpgme-ceb8387460b05de5c8cec6e02950176b09c4f38b.zip
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
-rw-r--r--src/data.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/data.h b/src/data.h
index 481a245e..90e0a883 100644
--- a/src/data.h
+++ b/src/data.h
@@ -82,9 +82,13 @@ 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;