Closed AshleyYakeley closed 1 year ago
I used serial-inspector to compare.
Cereal is more predictable, but it has an 8-byte length overhead for lists, including ByteArray
, Text
, and String
.
Serialise has one-byte type information for all simple types. Also converts all numeric types to Integer, then stores them efficiently based on value.
Winery String
serialization is inefficient (as [Char]
), but Text
is fine.
Underlying types currently serialised via serialisation library:
Bool
, Word8
, Word16
, Word64
, Double
Integer
, Rational
StrictByteString
, String
, Text
Note Void
and ()
are done directly, not via serialisation library.
Maybe
, []
etc. are not serialised.
Looks like we're doing our own thing here.
Done.
Goals
Options:
Float
andDouble
(See also #120)