Use an {encode,decode}_bin
-like interface for encoding/decoding
#280
Labels
{encode,decode}_bin
-like interface for encoding/decoding
#280
One remaining spot of allocations in
index
lives in the interface betweenindex
andrepr
, in theKey.encode: t -> string
andValue.encode: t -> string
functions of the functor argument.These function allocate strings, but these are then blit into already existing buffers, then blit again in a file. This allocation should be avoided, by using an interface closer to
repr
'sencode_bin
.Similar reasoning applies to
decode
, as this is heavily used during merges to decode alldata
keys.The text was updated successfully, but these errors were encountered: