Go to content

Wrangling memory leaks where you thought they could never happen - Ayaz Hafiz

You’ve just launched your Rust app and everything seems perfect, until you notice your application’s memory usage skyrocketing. With Rust’s scoping rules and GC-less memory model, memory leaks seem impossible. So what’s going on? The OOM killer is lurking around the corner, and it’s time to take action. While Rust’s powerful safety features and RAII enforcement mitigate common memory leak sources found in other languages, memory allocation challenges can still arise from subtle interactions between programming patterns and an underlying memory allocator. Join us in uncovering patterns that can lead to heap fragmentation and memory leaks, and idiomatic techniques for mitigating these issues in your Rust applications. We’ll learn to evaluate different memory allocators and learn how to harness powerful profiling tools to understand and optimize your Rust apps, from simple command-line tools to high-performance async web servers. 🦀 *About Ayaz Hafiz* 🦀 Ayaz (https://ayazhafiz.com/) works on developer tools and programming languages at RWX. Ayaz is interested in designing tools that make software engineering more productive for everyone. He’s also a huge fan of hiking, rock climbing, and skiing.

October 10, 2023