1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-21 10:09:57 +01:00

kbx: For non-Windows use 64k buffers by default instead of 128k.

* kbx/keybox-init.c (DEFAULT_LL_BUFFER_SIZE): New.
--

A simple gpg --check-sigs benchmark showed on Linux a small
performance peak at around 64k (5m52 vs. 6m8 for 128k and 6m33 for
system size).
This commit is contained in:
Werner Koch 2023-05-08 13:09:27 +02:00
parent 08ff55bd44
commit a2c199affb
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -28,7 +28,13 @@
#include "../common/sysutils.h"
#include "../common/mischelp.h"
static unsigned int ll_buffer_size = 128;
#ifdef HAVE_W32_SYSTEM
# define DEFAULT_LL_BUFFER_SIZE 128
#else
# define DEFAULT_LL_BUFFER_SIZE 64
#endif
static unsigned int ll_buffer_size = DEFAULT_LL_BUFFER_SIZE;
static KB_NAME kb_names;