antirez/redis — Issue #188: zipmap zmlen is too short
Author: hoterran
Created: 2011-11-13 02:54:10+00:00
State: open

hi antirez:
you know, many case use zipmap data structure shorten the memory usage, i saw configuration like "hash_max_zipmap_entries = 1000" many times.

but zmlen only use one bytes, so if zipmap members are bigger than or same as ZIPMAP_BIGLEN, zimmapLen function will loop zipmap total.
yeah, each hashTypeSet will call this function, this will comsume cpu and memory so much and seriouly.

i think two bytes(254 * 254) is enough. if needs, i can pull it.