summaryrefslogtreecommitdiff
path: root/src/tchdb/tchdb.c
diff options
context:
space:
mode:
authorŁukasz Stelmach <l.stelmach@samsung.com>2017-05-16 14:36:36 +0200
committerŁukasz Stelmach <l.stelmach@samsung.com>2017-05-18 15:18:33 +0200
commita622c25702211d7c3a9bcbd79c3745241f3ac954 (patch)
tree7ac369fbe37df5eeced0febf61ae1a3b23464e95 /src/tchdb/tchdb.c
parent66e0ddac1b7a9b10f42254ef976a22d01c407c14 (diff)
downloadejdb-submit/tizen/20170518.132048.tar.gz
ejdb-submit/tizen/20170518.132048.tar.bz2
ejdb-submit/tizen/20170518.132048.zip
Tune tchdb and tctdb to decrease initial size of hash mapssubmit/tizen/20170518.132048
Diffstat (limited to 'src/tchdb/tchdb.c')
-rw-r--r--src/tchdb/tchdb.c4
1 files changed, 2 insertions, 2 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