Posts tagged Memory
The Zero-Allocation Secret: Context Pool and smartParams
How gortex's routing hot path reaches 0 allocs/op: sync.Pool Context reuse, a [4]string smartParams, an embedded responseWriter, and how to measure it.
Memory and Sync Primitives
Go zero-allocation needs escape analysis, sync.Pool reuse and the right primitive: atomic for one value, Mutex for a block of state, RWMutex if reads dominate.