TRON (formerly known as Lite鲁): Tree Root Object Notation Parse no more鈥攖he wire format is the memory format. Introduction Lite鲁 is a zero-copy binary serialization format encoding data as a B-tree inside a single contiguous buffer, allowing access and mutation on any arbitrary field in O(log n) time. Essentially, it functions as a serialized dictionary. As a result, the serialization boundary has been broken: 'parsing' or 'serializing' in the traditional sense is no longer necessary. Lite鲁 structures can be read and mutated directly similar to hashmaps or binary trees, and since they exist in a single contiguous buffer, they always remain ready to send. Compared to other binary formats, Lite鲁 is schemaless, self-describing (no IDL or schema definitons required) and supports conversion to/from JSON, enabling compatibility with existing datasets/APIs and allowing for easy debugging/inspecting of messages. Thanks to the cache-friendly properties of the B-tree and the very minimalistic C implementation (9.3 kB), Lite鲁 outperforms the fastest JSON libraries (that make use of SIMD) by up to 120x depending on the benchmark. It also outperforms schema-only formats, such as Google Flatbuffers (242x). Lite鲁 is possibly the fastest schemaless data format in the world. Example to illustrate: A Lite鲁 message is received from a socket Without doing any parsing, the user can immediately: Lookup keys and read values via zero-copy pointers Insert/overwrite arbitrary key/value entries After all operations are done, the structure can be transmitted 'as-is' (no serialization required, just memcpy() ) The receiver then has access to all the same operations Typically, in such a scenario a distinct 'serializing' and 'deserializing' step would be required. However Lite鲁 blurs the line between memory and wire formats, allowing direct access, traversal and mutation of a serialized buffer. Features Schemaless & self-describing, no IDL or schema definitons required Zero-copy reads + writes of...
First seen: 2025-12-19 04:15
Last seen: 2025-12-20 04:22