gulaftab / redis

Automatically exported from code.google.com/p/redis
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

[FEATURE REQUEST] Way to store integer values in hashes like intset. #483

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I would like to see the hash could store integer-encoded values.
Zipmap is very slow on large data sets.
Usually hash is using to store integers as a values (and as a keys).
Therefore an integer encoded values should be very efficient in memory 
consumption and faster than zipmap.

Original issue reported on code.google.com by mousm...@gmail.com on 10 Mar 2011 at 1:43

GoogleCodeExporter commented 9 years ago
I examined source code of redis. As far as I understand hash has to encode a 
integers right way. Is this true?

Apparently large memory overhead knocked me up.
30Mb data was loaded to redis (as hash) and consume 115Mb memory 
(used_memory_human).
Is it possible to reduce these costs in any way?

Original comment by mousm...@gmail.com on 12 Mar 2011 at 9:44