VladRodionov / bigbase

BigBase - read optimized, fully HBase-compatible, NoSQL Data Store
GNU Affero General Public License v3.0
9 stars 1 forks source link

Koda: Serializer for small arrays (< 256 in length) #49

Closed VladRodionov closed 10 years ago

VladRodionov commented 10 years ago

The standard ByteArraySerializer takes 4 bytes for array length. We can save 3 bytes for small arrays.

VladRodionov commented 10 years ago

Make standard ByteArraySerializer smarter. If byte array <= 127 store length as 1-byte, otherwise as 4 bytes. It is not worth trying more complex things ( VInt).

VladRodionov commented 10 years ago

Fixed.