diff options
author | Łukasz Stelmach <l.stelmach@samsung.com> | 2017-05-16 14:36:36 +0200 |
---|---|---|
committer | Łukasz Stelmach <l.stelmach@samsung.com> | 2017-05-19 11:34:28 +0200 |
commit | bffebeee158836004599332516e41a0596a79e54 (patch) | |
tree | 865721ba4037d6f58d6d286e081fb2fe1cc0e629 | |
parent | 0ff8a9773a7a5fc6c7aed81f52b8b5a59ba05254 (diff) | |
download | ejdb-bffebeee158836004599332516e41a0596a79e54.tar.gz ejdb-bffebeee158836004599332516e41a0596a79e54.tar.bz2 ejdb-bffebeee158836004599332516e41a0596a79e54.zip |
Tune tchdb and tctdb to decrease initial size of hash maps
-rw-r--r-- | src/tchdb/tchdb.c | 4 | ||||
-rw-r--r-- | src/tctdb/tctdb.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/tchdb/tchdb.c b/src/tchdb/tchdb.c index 051875d..0022d10 100644 --- a/src/tchdb/tchdb.c +++ b/src/tchdb/tchdb.c @@ -39,7 +39,7 @@ #define HDBB64(TC_hdb) ((uint64_t *) ((TC_hdb)->map + HDBHEADSIZ)) #define HDBB32(TC_hdb) ((uint32_t *) ((TC_hdb)->map + HDBHEADSIZ)) -#define HDBDEFBNUM 131071 // default number of buckets +#define HDBDEFBNUM 32749 // default number of buckets #define HDBDEFAPOW 4 // default alignment power #define HDBMAXAPOW 16 // maximum alignment power #define HDBDEFFPOW 10 // default free block pool power @@ -50,7 +50,7 @@ //#else #define HDBDEFXMSIZ (64LL<<20) // default size of the extra mapped memory //#endif -#define HDBXFSIZINC 1048576 // 1MB increment of extra file size +#define HDBXFSIZINC 131072 // 128kB increment of extra file size #define HDBMINRUNIT 48 // minimum record reading unit #define HDBMAXHSIZ 32 // maximum record header size #define HDBFBPALWRAT 2 // allowance ratio of the free block pool diff --git a/src/tctdb/tctdb.h b/src/tctdb/tctdb.h index 7e08e71..c5e2d55 100644 --- a/src/tctdb/tctdb.h +++ b/src/tctdb/tctdb.h @@ -1179,7 +1179,7 @@ bool tctdbtrancommitimpl(TCTDB *tdb); bool tctdbtranabortimpl(TCTDB *tdb); -#define TDBDEFBNUM 131071 // default number of buckets +#define TDBDEFBNUM 32749 // default number of buckets __TCTDB_CLINKAGEEND |