valkey/tests/assets
sundb 3ca6972ecd
Replace all usage of ziplist with listpack for t_zset (#9366)
Part two of implementing #8702 (zset), after #8887.

## Description of the feature
Replaced all uses of ziplist with listpack in t_zset, and optimized some of the code to optimize performance.

## Rdb format changes
New `RDB_TYPE_ZSET_LISTPACK` rdb type.

## Rdb loading improvements:
1) Pre-expansion of dict for validation of duplicate data for listpack and ziplist.
2) Simplifying the release of empty key objects when RDB loading.
3) Unify ziplist and listpack data verify methods for zset and hash, and move code to rdb.c.

## Interface changes
1) New `zset-max-listpack-entries` config is an alias for `zset-max-ziplist-entries` (same with `zset-max-listpack-value`).
2) OBJECT ENCODING will return listpack instead of ziplist.

## Listpack improvements:
1) Add `lpDeleteRange` and `lpDeleteRangeWithEntry` functions to delete a range of entries from listpack.
2) Improve the performance of `lpCompare`, converting from string to integer is faster than converting from integer to string.
3) Replace `snprintf` with `ll2string` to improve performance in converting numbers to strings in `lpGet()`.

## Zset improvements:
1) Improve the performance of `zzlFind` method, use `lpFind` instead of `lpCompare` in a loop.
2) Use `lpDeleteRangeWithEntry` instead of `lpDelete` twice to delete a element of zset.

## Tests
1) Add some unittests for `lpDeleteRange` and `lpDeleteRangeWithEntry` function.
2) Add zset RDB loading test.
3) Add benchmark test for `lpCompare` and `ziplsitCompare`.
4) Add empty listpack zset corrupt dump test.
2021-09-09 18:18:53 +03:00
..
corrupt_empty_keys.rdb Replace all usage of ziplist with listpack for t_zset (#9366) 2021-09-09 18:18:53 +03:00
corrupt_ziplist.rdb Sanitize dump payload: ziplist, listpack, zipmap, intset, stream 2020-12-06 14:54:34 +02:00
default.conf
encodings.rdb
hash-ziplist.rdb Replace all usage of ziplist with listpack for t_hash (#8887) 2021-08-10 09:18:49 +03:00
hash-zipmap.rdb
minimal.conf Fix default/explicit "save" parameter loading. (#7767) 2020-09-09 15:12:57 +03:00
nodefaultuser.acl ACL channels permission handling for save/load scenario. (#8794) 2021-04-19 13:27:44 +03:00
user.acl Fix "default" and overwritten / reset users will not have pubsub channels permissions by default. (#8723) 2021-04-05 23:13:20 +03:00
zset-ziplist.rdb Replace all usage of ziplist with listpack for t_zset (#9366) 2021-09-09 18:18:53 +03:00