From b3009103bd2b86b2ee0df2a71300bb976442c6a6 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sun, 20 Mar 2016 10:35:01 +0100 Subject: 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. --- include/ouroboros/shm_du_map.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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" -- cgit v1.2.3