diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-01-29 13:14:56 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-01-31 11:56:59 +0100 |
commit | fbe951f0eaa518e414121495f96080c053a0c759 (patch) | |
tree | 1a443eaf8450a6e83a592c840ea2445bf4f0638e /source | |
parent | ebe3f450232d568d498b6b6a125d6114d3903a2f (diff) | |
download | mupdf-fbe951f0eaa518e414121495f96080c053a0c759.tar.xz |
Reduce size of pool allocator blocks to minimize waste.
A lot of EPUB pool allocated data is much smaller than the default size,
leading to a lot of wasted memory.
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/pool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/pool.c b/source/fitz/pool.c index 845fc40d..82579698 100644 --- a/source/fitz/pool.c +++ b/source/fitz/pool.c @@ -5,8 +5,8 @@ typedef struct fz_pool_node_s fz_pool_node; -#define POOL_SIZE (64<<10) /* default size of pool blocks */ -#define POOL_SELF (4<<10) /* size where allocs are put into their own blocks */ +#define POOL_SIZE (4<<10) /* default size of pool blocks */ +#define POOL_SELF (1<<10) /* size where allocs are put into their own blocks */ struct fz_pool_s { |