Session

Trash Talk: Stacks, Heaps, and the Art of Garbage Collection

As a software developer, I strive to write fast, resource-efficient code. While benchmarking, I noticed unexpected slowdowns -- something was off with memory allocations. That realization led me down the rabbit hole of memory management.

Memory is finite, and mismanagement can lead to leaks, crashes, and poor performance. Garbage collection (GC) automates this process, but it comes with trade-offs. Go’s GC is designed for efficiency and low latency, but understanding its inner workings helps write better code.

In this talk, we’ll explore:

- Stack vs. heap allocations and why one is slower.
- What data is stored where.
- Escape analysis: how Go decides memory placement.
- How Go GC works and its impact on performance.
- Practical GC tuning strategies for optimizing applications.

By the end, you'll gain a deeper understanding of Go’s memory model and techniques to optimize your applications.

Aleksandr Rybolovlev

Software Engineer, Isovalent at Cisco

Amsterdam, The Netherlands

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top