example/mzcat: embiggen static array buffers

$ time example-mzcat < linux-6.8.2.tar.xz > /dev/null
Before: user 0m8.392s
After:  user 0m8.122s
This commit is contained in:
Nigel Tao committed 2024-03-31 18:39:57 +11:00
1 parent b6b0f84187
commit 1596343889
1 file changed
+4 -3
+4 -3
View File
@@ -84,15 +84,16 @@ Supported compression formats:
#endif
#ifndef DST_BUFFER_ARRAY_SIZE
#define DST_BUFFER_ARRAY_SIZE (128 * 1024)
#define DST_BUFFER_ARRAY_SIZE (64 * 1024 * 1024)
#endif
#ifndef SRC_BUFFER_ARRAY_SIZE
#define SRC_BUFFER_ARRAY_SIZE (128 * 1024)
#define SRC_BUFFER_ARRAY_SIZE (64 * 1024 * 1024)
#endif
// 80 MiB is big enough to decode files encoded with "xz -9".
#ifndef WORKBUF_ARRAY_SIZE
#define WORKBUF_ARRAY_SIZE (64 * 1024 * 1024)
#define WORKBUF_ARRAY_SIZE (80 * 1024 * 1024)
#endif
uint8_t g_dst_buffer_array[DST_BUFFER_ARRAY_SIZE];