diff options
author | Marek Vavruša <marek.vavrusa@nic.cz> | 2015-06-04 23:27:07 +0200 |
---|---|---|
committer | Marek Vavruša <marek.vavrusa@nic.cz> | 2015-06-04 23:27:07 +0200 |
commit | 91a2945e631b673942ffe62992e03913925a63da (patch) | |
tree | b5df930d5c5ab9ebf63ff3df2e4933c27e6d2a56 /daemon/engine.h | |
parent | tests: added missing lru unit test (diff) | |
download | knot-resolver-91a2945e631b673942ffe62992e03913925a63da.tar.xz knot-resolver-91a2945e631b673942ffe62992e03913925a63da.zip |
daemon/worker: ring buffer to recycle mempools
this avoids repetitive allocation/free cycles on load
Diffstat (limited to 'daemon/engine.h')
-rw-r--r-- | daemon/engine.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon/engine.h b/daemon/engine.h index 2f3b0794..8a0d460e 100644 --- a/daemon/engine.h +++ b/daemon/engine.h @@ -20,6 +20,9 @@ #ifndef DEFAULT_NSREP_SIZE #define DEFAULT_NSREP_SIZE 4096 /**< Default NS reputation cache size */ #endif +#ifndef DEFAULT_RING_SIZE +#define DEFAULT_RING_SIZE 16 /**< Maximum size of the worker ring size */ +#endif /* * @internal These are forward decls to allow building modules with engine but without Lua. |