aboutsummaryrefslogtreecommitdiff
path: root/c/enc/memory.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/enc/memory.h')
-rw-r--r--c/enc/memory.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/c/enc/memory.h b/c/enc/memory.h
index a958fdd..a4417df 100644
--- a/c/enc/memory.h
+++ b/c/enc/memory.h
@@ -26,10 +26,12 @@ extern "C" {
#if !defined(BROTLI_ENCODER_EXIT_ON_OOM)
#if defined(BROTLI_EXPERIMENTAL)
-#define BROTLI_ENCODER_MEMORY_MANAGER_SLOTS 32768
+#define BROTLI_ENCODER_MEMORY_MANAGER_SLOTS (48*1024)
#else /* BROTLI_EXPERIMENTAL */
#define BROTLI_ENCODER_MEMORY_MANAGER_SLOTS 256
#endif /* BROTLI_EXPERIMENTAL */
+#else /* BROTLI_ENCODER_EXIT_ON_OOM */
+#define BROTLI_ENCODER_MEMORY_MANAGER_SLOTS 0
#endif /* BROTLI_ENCODER_EXIT_ON_OOM */
typedef struct MemoryManager {