This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=002a24fcfd72bda1ec1a916e427dca521ce475cd commit 002a24fcfd72bda1ec1a916e427dca521ce475cd Author: Guillem Jover <[email protected]> AuthorDate: Sun Jul 18 22:32:07 2021 +0200 libdpkg: Increase I/O memory buffers from 4 to 32 KiB The current buffers for de/compression I/O are 4 KiB, the one for file descriptor I/O is 32 KiB. Use the same macro for both, set them to 32 KiB. --- lib/dpkg/buffer.c | 2 +- lib/dpkg/buffer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dpkg/buffer.c b/lib/dpkg/buffer.c index a4d6527d7..ed05f4b4a 100644 --- a/lib/dpkg/buffer.c +++ b/lib/dpkg/buffer.c @@ -180,7 +180,7 @@ buffer_copy(struct buffer_data *read_data, off_t limit, struct dpkg_error *err) { char *buf; - int bufsize = 32768; + int bufsize = DPKG_BUFFER_SIZE; off_t bytesread = 0, byteswritten = 0; off_t totalread = 0, totalwritten = 0; diff --git a/lib/dpkg/buffer.h b/lib/dpkg/buffer.h index 09f1847ad..e29766014 100644 --- a/lib/dpkg/buffer.h +++ b/lib/dpkg/buffer.h @@ -37,7 +37,7 @@ DPKG_BEGIN_DECLS * @{ */ -#define DPKG_BUFFER_SIZE 4096 +#define DPKG_BUFFER_SIZE (32 * 1024) #define BUFFER_WRITE_VBUF 1 #define BUFFER_WRITE_FD 2 -- Dpkg.Org's dpkg

