Ben Chuanlong Du's Blog

It is never too late to learn.

Binary Serialization Format

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Summary

  1. Protobuf is best for message serialization. Some companies (e.g., Google) also use it extensively for disk serialization.

  2. FlatBuffers has better CPU performance.

  3. Apache Parquet is the most popular binary …

Tips on JSON

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Shortcomes of JSON

It is suggested that you avoid using the JSON format! TOML and YAML are better text-based alternatives. If readability is not a concern, a binary serialization format is …

Serialization and deserialization in Python

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is suggested that you avoid using it . Please refer to Shotcomes of JSON for detailed discussions on this. TOML and YAML …