Working with Arenas — Nearly Getting Rid of the GC
summary
Covers region-based memory management (arenas) for Go, explaining why arenas help reduce garbage collection and giving practical optimization tips. Discusses how to use arena techniques in Go code to speed programs and lessen GC overhead.
AI-written summary · about
chapters (22)
- 0:00Introduction
- 1:30Memory management basics
- 4:02Garbage collection trade-offs
- 9:11Arena memory concept
- 13:13Arenas in game dev
- 13:59Using Go arenas
- 15:29When to use arenas
- 18:24Benchmarking arenas vs GC
- 22:43Arena pitfalls
- 25:36Common arena mistakes
- 29:37Sanitizers for safety
- 31:41Arena performance limits
- 33:09Real-world GC issues
- 34:35Arena alternatives
- 36:24When to avoid arenas
- 37:09Q&A: Nested structures
- 38:43Q&A: Arenas in services
- 39:49Q&A: Strings in arenas
- 42:19Q&A: Reusing arenas
- 43:48Q&A: Arena size control
- 44:53Q&A: Parent-child lifetime
- 46:44Q&A
