]> git.saurik.com Git - redis.git/commit - src/redis.h
Reference zset score in zskiplistNode from dict entries
authorPieter Noordhuis <pcnoordhuis@gmail.com>
Tue, 3 Aug 2010 18:49:53 +0000 (20:49 +0200)
committerPieter Noordhuis <pcnoordhuis@gmail.com>
Tue, 3 Aug 2010 18:49:53 +0000 (20:49 +0200)
commit69ef89f2cf5a699d97475ff8e7c3ce714c6947cf
treec5d919255a972c356a39b57c7ef7ad77151b06f7
parent2159782b513da6eaba9be210c6b8b237baab6cfe
Reference zset score in zskiplistNode from dict entries

This avoids the extra allocation of sizeof(double) for storing the score
of a zset entry in the hash table. Saves sizeof(double) + malloc
overhead = approx. 16 bytes per zset entry.
src/redis.c
src/redis.h
src/t_zset.c