diff --git a/lzfP.h b/lzfP.h index 3781cac12..d533f1829 100644 --- a/lzfP.h +++ b/lzfP.h @@ -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 /* diff --git a/redis.c b/redis.c index 404412286..52443129a 100644 --- a/redis.c +++ b/redis.c @@ -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; diff --git a/redis.conf b/redis.conf index 099a00a29..c1a1f7f12 100644 --- a/redis.conf +++ b/redis.conf @@ -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