summaryrefslogtreecommitdiffstats
path: root/daemon/engine.h
diff options
context:
space:
mode:
authorMarek Vavruša <marek.vavrusa@nic.cz>2015-06-04 23:27:07 +0200
committerMarek Vavruša <marek.vavrusa@nic.cz>2015-06-04 23:27:07 +0200
commit91a2945e631b673942ffe62992e03913925a63da (patch)
treeb5df930d5c5ab9ebf63ff3df2e4933c27e6d2a56 /daemon/engine.h
parenttests: added missing lru unit test (diff)
downloadknot-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.h3
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.