From 7a8392bb1fbebe1e278f9a9df831e7dcd67042ff Mon Sep 17 00:00:00 2001 From: kanoi Date: Tue, 18 Nov 2014 12:35:41 +1100 Subject: [PATCH] ckdb - suggest to malloc to use mmap for transfer --- src/ckdb.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ckdb.h b/src/ckdb.h index f9a216c0..61848f18 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -52,7 +52,7 @@ #define DB_VLOCK "1" #define DB_VERSION "0.9.4" -#define CKDB_VERSION DB_VERSION"-0.640" +#define CKDB_VERSION DB_VERSION"-0.641" #define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL_HERE __FILE__, __func__, __LINE__ @@ -611,7 +611,8 @@ typedef struct transfer { char *mvalue; } TRANSFER; -#define ALLOC_TRANSFER 64 +// Suggest malloc use MMAP - 1913 = largest under 2MB +#define ALLOC_TRANSFER 1913 #define LIMIT_TRANSFER 0 #define CULL_TRANSFER 1024 #define INIT_TRANSFER(_item) INIT_GENERIC(_item, transfer)