
MUS Serialization Format
MUS (Marshal, Unmarshal, Size) is a serialization format founded on the “Keep It Simple” principle. If you are engineering high-performance systems, MUS offers three mechanical advantages that traditional formats don’t: Extreme Density: By eliminating almost all metadata, MUS payloads are often the smallest possible representation of your data. | NAME | Bytes | |----------|--------| | MUS | 58.00 | | Protobuf | 69.00 | | JSON | 150.00 | Full benchmarks https://github.com/ymz-ncnk/go-serialization-benchmarks The Size Function: The ability to calculate the exact memory required before allocating a buffer, which allows you to: Reuse buffers effectively to minimize GC pressure. Avoid expensive append calls and re-allocations during marshaling. DTM (Data Type Metadata): A one-byte solution for “heavy” features like versioning and interface serialization. Untyped Serialization In most cases, the sender (marshal) and the receiver (unmarshal) already agree on the data type they are communicati
Continue reading on Dev.to
Opens in a new tab



