Closed VladRodionov closed 10 years ago
The standard ByteArraySerializer takes 4 bytes for array length. We can save 3 bytes for small arrays.
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).
Fixed.
The standard ByteArraySerializer takes 4 bytes for array length. We can save 3 bytes for small arrays.