Skip to content

zipmap zmlen is too short #188

@hoterran

Description

@hoterran

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions