What problem does it solve?
Golang-performance helps you identify and fix real performance bottlenecks in Go services by matching the optimization pattern to the profiling signal, reducing wasted effort and preventing micro-optimizations that don’t move the needle.
Core Features & Use Cases
- Profile-driven optimization guidance: Uses pprof/fgprof/tracing signals to decide what to change first and what to rule out before optimizing.
- Allocation and CPU efficiency patterns: Covers hot-path improvements like reducing allocations, improving memory layout, minimizing GC pressure, and avoiding common Go pitfalls.
- Concurrency, caching, and hot-loop discipline: Applies correct patterns for pooling, work avoidance, caching strategies, HTTP/IO tuning, and iterative benchmark-driven validation.
- Use Case: A Go HTTP endpoint is slow and alloc-heavy under load; use this skill to diagnose whether allocations, CPU hotspots, GC behavior, or external I/O dominates, then apply one focused optimization pattern and confirm with benchstat.
- Use Case: A benchmark shows throughput regressions after a change; use this skill to structure an iterative before/after comparison and pinpoint which class of optimization (alloc, CPU, layout, I/O) is likely responsible.
Quick Start
Ask for a single profiling-led optimization plan for your specific hot function, including what metric to benchmark, which diagnostic tool to use, the first change to try, and what comparison output to capture.