From fbe951f0eaa518e414121495f96080c053a0c759 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 29 Jan 2018 13:14:56 +0100 Subject: 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. --- source/fitz/pool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source') 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 { -- cgit v1.2.3