How to Tune JSON Encoding and Decoding for Throughput
Decode JSON straight from bytes, buffers and streams, reuse derived codecs, size reader and writer buffers, and measure with JMH.
How to Avoid Allocation on Hot Paths
Keep streams on primitive lanes, read and build Chunks without boxing, swap Option for Maybe, pre-bind metric labels, and measure each change.
How to Process Binary Data Without Boxing
Read binary files, buffers and InputStreams as unboxed Long and Double streams, aggregate them, write them back and measure allocation.