NOTE
2.16 ziplist
Ziplist is a compact data structure used inside Redis. These notes record its relationship to data types such as lists and sorted sets.
This is a historical learning note and may contain outdated or incomplete understanding.
1. What Is ziplist
- A Redis internal data structure used to implement list and zset
- A contiguous block of memory
2. Why ziplist Is Needed
- Dynamic array: consists of a length and an element list. Each element occupies the same amount of space and has the same type
- ziplist: also consists of a length and an element list. The difference is:
- Each element can occupy a different amount of space, so memory can be saved

3. References
Drag to pan, scroll to zoom, and click a node to expand or collapse it. Large maps start with deeper levels collapsed; click nodes to expand them.

Discussion
Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub