diff options
author | Dimitri Staessens <dimitri.staessens@intec.ugent.be> | 2016-03-20 10:35:01 +0100 |
---|---|---|
committer | Dimitri Staessens <dimitri.staessens@intec.ugent.be> | 2016-03-20 10:35:01 +0100 |
commit | b3009103bd2b86b2ee0df2a71300bb976442c6a6 (patch) | |
tree | 8a952d8e6eed7fbfbb1431af106d75c5bb82eddd /include | |
parent | a9bd08bf09c7baa9254a4b63aacb6bbb23f85f07 (diff) | |
download | ouroboros-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.h | 2 |
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" |