Refinery 3.0 achieved 70% CPU and 60% memory reduction through strategic optimization of Go code. The key improvement was avoiding full deserialization of trace spans by selectively extracting only needed fields from serialized data, keeping the rest in compact MessagePack format. This eliminated thousands of heap allocations per span and reduced garbage collection overhead from 25% to minimal levels. Additional optimizations included direct binary-to-binary transcoding for OTLP formats, buffer pooling, and metrics instrumentation improvements. The approach demonstrates that significant performance gains are possible without language rewrites by focusing on doing only necessary work.

4 Comments

Sort: