What problem does it solve?
Golang-performance helps you reduce latency, CPU usage, and allocation/GC pressure in Go code by choosing the correct optimization pattern based on evidence rather than intuition.
Core Features & Use Cases
- Profiling-first methodology: Emphasizes measuring hot spots with tools like pprof/fgprof and validating improvements with atomic benchmarks and benchstat.
- High-leverage performance patterns: Covers allocation reduction, CPU efficiency, memory layout, GC tuning, pooling, caching, and hot-path safeguards with decision guidance.
- When to use it: Use during performance code review or when profiling/benchmarks already identified a bottleneck you want to fix (not to replace benchmarking methodology or debugging workflows).
Quick Start
Apply the golang-performance skill to your Go project by first profiling with pprof/fgprof to identify the bottleneck, then ask it which specific optimization pattern to apply and what single benchmark to run to verify the improvement.