0xShikhar
Projects

go-hotpath

Shows when Go's garbage collector is stealing your latency, and helps you stop it.

BuildingWebsiteCode

pkg.go.dev

# What it is

go-hotpath gives latency-sensitive Go services explicit control over garbage-collector interference: it detects GC pressure on hot execution paths, measures pause impact, and applies mitigation strategies with zero external dependencies. Published as an open Go module on pkg.go.dev.

# Why it exists

In latency-critical Go systems (ledgers, matching engines, RPC hot paths), uncontrolled GC pauses create p99/p999 tail-latency spikes that violate deterministic execution budgets.

# Details

  • Zero-dependency instrumentation for GC interference detection on hot paths
  • Measurement primitives quantifying pause impact per execution window
  • Control strategies reducing GC pressure in p99-critical code paths

# Built with

Go · Runtime/GC Internals · Low-Latency Systems