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 15:04:00 +0000 (17:04 +0200)
commita76b9063d0b858fd2c72a92794b4c852005cac30
tree312b52baa241191fc26e1e690965b2fc08eb12a9
parent053d56a1fabc6f0ed5895bd8b3f725a6ee4ffdba
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