summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-01-29 13:14:56 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-01-31 11:56:59 +0100
commitfbe951f0eaa518e414121495f96080c053a0c759 (patch)
tree1a443eaf8450a6e83a592c840ea2445bf4f0638e /source
parentebe3f450232d568d498b6b6a125d6114d3903a2f (diff)
downloadmupdf-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.c4
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
{