Mohamed Hassan
oldmoe.bsky.social
Mohamed Hassan
@oldmoe.bsky.social
also discuss a real world use case where TinyBits is used to encode and transmit instrumentation data from a Ruby app. And I compare it to JSON and Msgpack

Beating them both by varying degrees in all tested metrics, payload size, process memory & performance overhead

github.com/oldmoe/tinyb...
May 16, 2025 at 6:46 PM
I explain more about the new features and its benefits on my blog

t.co/FOJszyddCn
May 16, 2025 at 6:46 PM
TinyBits 0.6.0 is released, better memory management, smaller multi-object buffers and a more robust dictionary support

With external dictionaries, a schema-less encoder like TinyBits can match (and sometimes exceed) the compactness of Protocol Buffers encoded output
May 16, 2025 at 6:46 PM
TinyBits is getting a new interesting feature, you can now (using the repo's head) supply the pack/unpack method with an external dictionary.

For shorter messages with no duplicate strings this can lead to a dramatic size reduction, from 96 to 34 bytes in the example below
May 9, 2025 at 7:54 PM
For a data set of 11 different documents, the TinyBits Ruby gem was faster that all other schemaless encoders tested (Oj, JSON, Msgpack & CBOR) for encoding and decoding, all while producing much smaller serialized sizes.

Unlike other binary formats, it was as compressible as text formats like JSON
May 5, 2025 at 1:39 PM
TinyBits: A new schema-less binary serialization format. Fast to encode, fast to decode and generally smaller output than all other schema-less formats.

Currently available as a preview for C and Ruby. A Python module is also in the works.

oldmoe.blog/2025/05/05/s...
May 5, 2025 at 1:34 PM