Subject Re: [firebird-support] Varchar size overhead
Author Dmitry Yemanov
Alexandre Benson Smith wrote:
>
> But so far I found information like:
>
> 2.) 127 ->2 (from a friend) Don't know if it's right, it could be, but
> why just 127 and not 128 ? (some bits/values for a flag or something
> like this ?)
> 3.) 128 -> 2 (Ivan) makes sense, but why not 256 ? one bit for a flag or
> something ?

One bit is reserved to tell the decoder whether the following N bytes
are uncompressed or compressed (i.e. contain some repeating byte).


Dmitry