]> git.saurik.com Git - redis.git/commit
Added two new encodings to ziplist.c
authorantirez <antirez@gmail.com>
Tue, 24 Apr 2012 14:54:07 +0000 (16:54 +0200)
committerantirez <antirez@gmail.com>
Tue, 24 Apr 2012 17:35:29 +0000 (19:35 +0200)
commitdcd4efe9ef68b3fa01f5e9e5f8bcb86cea2d15af
tree8ea3ba0e4deadcfae24a84d3bb44ceaeef4067bd
parent62bfa66284eceae5dd06c9b3a06f0fb903e55f9d
Added two new encodings to ziplist.c

1) One integer "immediate" encoding that can encode from 0 to 12 in the
encoding byte itself.
2) One 8 bit signed integer encoding that can encode 8 bit signed small
integers in a single byte.

The idea is to exploit all the not used bits we have around in a
backward compatible way.
src/ziplist.c