From 3aabfcdc4d5f9cbb75aae1af09416e32be26f916 Mon Sep 17 00:00:00 2001 From: Biru Mohanathas Date: Tue, 15 Sep 2026 18:47:11 -0700 Subject: [PATCH] Increase extraction buffers to 256 KiB Increase the decompression input and output buffers from 16 KiB and 32 KiB to 256 KiB each. This reduces read and write call overhead during regular and solid extraction, particularly for large payloads, at the cost of roughly 464 KiB of additional static memory per installer stub. --- Source/exehead/fileform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/exehead/fileform.c b/Source/exehead/fileform.c index 5e4fc3f991..b78329cbb5 100644 --- a/Source/exehead/fileform.c +++ b/Source/exehead/fileform.c @@ -362,8 +362,8 @@ const TCHAR * NSISCALL loadHeaders(int cl_flags) return 0; } -#define IBUFSIZE 16384 -#define OBUFSIZE 32768 +#define IBUFSIZE (256 * 1024) +#define OBUFSIZE (256 * 1024) // returns -3 if compression error/eof/etc