SilentJSON – A zero-allocation JSON parser for Go (3.4 GB/s)
SilentJSON is a zero-allocation JSON parser for Go that achieves throughput of up to 3.4 GB/s by avoiding memory allocations during parsing. It is designed for high-performance applications where minimizing garbage collection overhead is critical.
Background
Go is a popular statically typed programming language known for its simplicity and performance, widely used for backend services and infrastructure. JSON parsing is a common bottleneck in Go servers because the standard library (`encoding/json`) allocates memory for every parsed value, which increases garbage-collection pressure and slows throughput. "Zero-allocation" means the parser avoids creating new objects in memory during parsing, reusing pre-allocated buffers instead. 3.4 GB/s refers to the parsing speed (gigabytes of input processed per second), which is an order of magnitude faster than the standard library. This project targets applications that process very large volumes of JSON data — e.g., API gateways, log processors, real-time analytics — where every microsecond of latency and every byte of memory matters.