Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Allocator Wrestling

Gopher Academy via YouTube

Overview

Explore the intricacies of dynamic memory allocation in Go and its impact on performance in this 37-minute conference talk from GopherCon 2018. Dive deep into the Go runtime's implementation of malloc(), examining internal optimizations to understand when allocation is fast or slow. Learn to leverage Go's CPU profiler, heap profiler, and execution tracer to identify when reducing allocations can boost program speed. Discover strategies for amortizing or reducing heap allocation, including slab allocation, string interning, buffer recycling, and sync.Pool from the Go standard library. Gain insights into real-world scenarios where these techniques have proven beneficial, along with potential implementation challenges and pitfalls to avoid.

Syllabus

GopherCon 2018: Eben Freeman - Allocator Wrestling

Taught by

Gopher Academy

Reviews

Start your review of Allocator Wrestling

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.