Explore small data optimization techniques in Rust through this 46-minute conference talk from RustLab. Learn about various crates for small string and vector optimizations, their differences, and benefits such as improved cache locality and reduced heap usage. Dive into implementation strategies, including enum-based approaches without unsafe code and performance-focused techniques using unsafe Rust. Discover the intricacies of interning for small string deduplication, both locally and globally. Gain insights on when to consider "small" data optimizations, how Rust can provide C/C++-like optimizations without excessive complexity, and best practices for using unsafe code. Conclude with a Q&A session to deepen your understanding of small data optimization in Rust programming.
Overview
Syllabus
Small data optimization - Nikolai Vazquez
Taught by
RustLab Conference