thesecretmaster / predis-v0

Like redis, but parallel and written from scratch for fun!
GNU General Public License v3.0
1 stars 0 forks source link

Make it possible to clean up buckets in the hashtable #31

Open thesecretmaster opened 4 years ago

thesecretmaster commented 4 years ago

Not quite sure how to do this, but on 64 bit systems with 48 bit addresses, we might be able to hide a counter for the number of elements in the bucket in the upper 16 bits. Then we can clean the bucket when the counter is zero. But I'm not quite sure.