~/talk

Allocating Less: Really Thin Rust Cloud Apps

Talkat RustLab 2021 · 2021-03-18..09-23· [rust]
name:Evan Chan
links:none on file
slides:none on file

Argues that lowering allocations is key for tiny cloud units and gives concrete tactics: measure with Dhat to find hotspots (example: Serde JSON value deserialization shows ~90% of allocations), replace per-entry heap strings to cut the ~72‑byte/hashmap entry overhead with crates like nested or small-string types, use jemalloc or mimalloc for faster alloc patterns, turn trait objects into enums via enum_dispatch, and prefer zero-copy formats (FlatBuffers/CapnProto/Arrow/scroll).

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 3:01Benefits of Rust for cloud
  3. 7:31Memory basics and profiling
  4. 12:43Strategies to reduce allocation
  5. 24:18Serialization and advanced tools
  6. 32:54Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.