Commit b0553789 authored by antirez's avatar antirez
Browse files

LZF compression re-enabled by default, but with INIT_HTAB set to 0 to avoid...

LZF compression re-enabled by default, but with INIT_HTAB set to 0 to avoid the very costly memset initialization. Note that with this option set valgrind will output some false positive about lzf_c.c
parent 121f70cf
......@@ -88,7 +88,7 @@
* deterministic/repeatable when the configuration otherwise is the same).
*/
#ifndef INIT_HTAB
# define INIT_HTAB 1
# define INIT_HTAB 0
#endif
/*
......
......@@ -1142,7 +1142,7 @@ static void initServerConfig() {
server.appendfilename = "appendonly.aof";
server.requirepass = NULL;
server.shareobjects = 0;
server.rdbcompression = 0;
server.rdbcompression = 1;
server.sharingpoolsize = 1024;
server.maxclients = 0;
server.maxmemory = 0;
......
......@@ -54,10 +54,10 @@ save 300 10
save 60 10000
# Compress string objects using LZF when dump .rdb databases?
# For default that's set to 'no' because uses too much CPU time.
# You want to switch this to 'yes' only if you have a lot of very compressible
# data inside your dataset and are using replication.
rdbcompression no
# For default that's set to 'yes' as it's almost always a win.
# If you want to save some CPU in the saving child set it to 'no' but
# the dataset will likely be bigger if you have compressible values or keys.
rdbcompression yes
# The filename where to dump the DB
dbfilename dump.rdb
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment