Pinchflat

Making Rust structs as small as humanly possible

Raw Attributes

Source: Let's Get Rusty
  • subtitle_filepaths:
  • source_id: 56
  • original_url: https://www.youtube.com/watch?v=3G6heF_Hxk0
  • last_error:
  • media_filepath: /downloads/chris/tubes/Let's Get Rusty_[UCSp-OaMpsO8K0KkOqyBl7_w]/Season 2026/s2026e100899_Making Rust structs as small as humanly possible.mp4
  • playlist_index: 1
  • description: 👉Join the Rust Live Accelerator waitlist: https://letsgetrusty.com/join/wv-3G6heF_Hxk0 Why can a struct with 16 bytes of fields take up 32 bytes in memory? Learn how padding and alignment affect Rust struct sizes, how Rust can reorder fields, and what changes when you use #[repr(C)] for C interoperability. We'll shrink a SensorReading struct from 32 bytes to 16 by reordering its fields, then look at a real example from Polars and Apache Arrow. Chapters: 0:19 Cache lines and memory reads 1:01 Alignment and padding rules 3:21 Rust's automatic field reordering 3:57 C interoperability 5:11 Reordering fields to eliminate padding
  • prevent_download: false
  • id: 4107893
  • prevent_culling: false
  • uploaded_at: 2026-10-08T15:00:10Z
  • predicted_media_filepath: /downloads/chris/tubes/Let's Get Rusty_[UCSp-OaMpsO8K0KkOqyBl7_w]/Season 2026/s2026e100800_Making Rust structs as small as humanly possible.mp4
  • updated_at: 2026-10-09T00:13:08Z
  • culled_at:
  • nfo_filepath: /downloads/chris/tubes/Let's Get Rusty_[UCSp-OaMpsO8K0KkOqyBl7_w]/Season 2026/s2026e100899_Making Rust structs as small as humanly possible.nfo
  • short_form_content: false
  • media_size_bytes: 15733357
  • inserted_at: 2026-10-09T00:12:55Z
  • upload_date_index: 99
  • title: Making Rust structs as small as humanly possible
  • metadata_filepath: /downloads/chris/tubes/Let's Get Rusty_[UCSp-OaMpsO8K0KkOqyBl7_w]/Season 2026/s2026e100899_Making Rust structs as small as humanly possible.info.json
  • livestream: false
  • thumbnail_filepath: /downloads/chris/tubes/Let's Get Rusty_[UCSp-OaMpsO8K0KkOqyBl7_w]/Season 2026/s2026e100899_Making Rust structs as small as humanly possible-thumb.jpg
  • uuid: 3e25a6e3-f8d2-4ffc-bac9-025a90018666
  • duration_seconds: 445
  • matching_search_term:
  • media_downloaded_at: 2026-10-09T00:13:05Z
  • media_redownloaded_at:
  • media_id: 3G6heF_Hxk0
Worker
State
Scheduled At
Pinchflat.Downloading.MediaDownloadWorker completed