Tagged articles
3 articles
Page 1 of 1
Code Wrench
Code Wrench
Oct 21, 2025 · Backend Development

Master Go Memory Escape: Stop High CPU & GC Spikes

This article explains Go's memory escape mechanism, how the compiler decides to move variables from stack to heap, shows practical commands and code examples, lists common escape scenarios, and provides concrete optimization techniques to reduce unnecessary heap allocations and improve performance.

Escape Analysisgcmemory escape
0 likes · 10 min read
Master Go Memory Escape: Stop High CPU & GC Spikes
MaGe Linux Operations
MaGe Linux Operations
Aug 12, 2022 · Fundamentals

Why Go Pointers Trip You Up: Common Pitfalls and Deep Dive

This article explains how Go pointers work, why they differ from C pointers, and highlights frequent mistakes such as struct pointer assignments, for‑range loop quirks, closure captures, and memory‑escape scenarios, providing clear code examples and runtime insights.

Runtimeclosuresfor-range
0 likes · 13 min read
Why Go Pointers Trip You Up: Common Pitfalls and Deep Dive