mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 16:47:28 +01:00
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:
1 parent
b6b0f84187
commit
1596343889
1 file changed
+4
-3
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user