summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@intec.ugent.be>2016-03-20 10:35:01 +0100
committerDimitri Staessens <dimitri.staessens@intec.ugent.be>2016-03-20 10:35:01 +0100
commitb3009103bd2b86b2ee0df2a71300bb976442c6a6 (patch)
tree8a952d8e6eed7fbfbb1431af106d75c5bb82eddd /include
parenta9bd08bf09c7baa9254a4b63aacb6bbb23f85f07 (diff)
downloadouroboros-b3009103bd2b86b2ee0df2a71300bb976442c6a6.tar.gz
ouroboros-b3009103bd2b86b2ee0df2a71300bb976442c6a6.zip
lib: optimization of ringbuffer
Got rid of divisions and modulo operations. Change in the meaning of a #define. SHM_DU_MAP_SIZE: is now an exponent of 2. Default is 10, allowing for 1024 blocks in the map.
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/shm_du_map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ouroboros/shm_du_map.h b/include/ouroboros/shm_du_map.h
index bfccf60a..b3533fa3 100644
--- a/include/ouroboros/shm_du_map.h
+++ b/include/ouroboros/shm_du_map.h
@@ -39,7 +39,7 @@
#endif
#ifndef SHM_DU_MAP_SIZE
-#define SHM_DU_MAP_SIZE (1 << 26)
+#define SHM_DU_MAP_SIZE 10
#endif
#include "common.h"