Hasty Briefsbeta

Lite³: A JSON-Compatible Zero-Copy Serialization Format

2 days ago
  • #zero-copy
  • #serialization
  • #performance
  • Lite³ is a zero-copy binary serialization format that encodes data as a B-tree inside a single contiguous buffer.
  • It allows direct access and mutation of any field in O(log n) time, functioning like a serialized dictionary.
  • Lite³ is schemaless, self-describing, and supports JSON conversion for compatibility and debugging.
  • Performance benchmarks show Lite³ outperforming JSON libraries by up to 120x and Google Flatbuffers by 242x.
  • The format includes two APIs: Buffer API for control over memory allocation and Context API for ease of use.
  • Lite³ is designed for security, handling untrusted messages with bounds checking and pointer validation.
  • It is suitable for production, embedded systems, and ARM platforms, though API stability may vary.
  • Inspired by Lite², Lite³ is an independent implementation aiming to be lighter and more efficient.
  • The project is open-source under the MIT License, including yyjson for JSON conversion.