From 75b3ca4a484e15a2af0e412dc3d0bc2d9fcfc24c Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Thu, 28 Nov 2013 23:31:49 +0000 Subject: [PATCH] hopefully improve performance of gdbm...currently I think about replacing gdbm by tokyo cabinet --- src/storage/storage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage/storage.c b/src/storage/storage.c index be71ef9..4fd56db 100644 --- a/src/storage/storage.c +++ b/src/storage/storage.c @@ -41,8 +41,8 @@ storageCtor(void * _this, va_list * params) this->gdbm = gdbm_open( this->db_name, - 0, - GDBM_WRCREAT, + 2048, + GDBM_WRCREAT|GDBM_NOLOCK, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH, NULL);