antirez 9a28ead0a1 dict.c Rehashing visualization code snippet added to utils. %!s(int64=10) %!d(string=hai) anos
..
README 9a28ead0a1 dict.c Rehashing visualization code snippet added to utils. %!s(int64=10) %!d(string=hai) anos
rehashing.c 9a28ead0a1 dict.c Rehashing visualization code snippet added to utils. %!s(int64=10) %!d(string=hai) anos

README

Hash table implementation related utilities.

rehashing.c
---

Visually show buckets in the two hash tables between rehashings. Also stress
test getRandomKeys() implementation, that may actually disappear from
Redis soon, however visualizaiton some code is reusable in new bugs
investigation.

Compile with:

cc -I ../../src/ rehashing.c ../../src/zmalloc.c ../../src/dict.c -o rehashing_test