~/talk

Rewrite, Optimize, Repeat

Talkat EuroRust 2025 · 2025-10-09..10-10· [rust]
slides:none on file

Ports a battle‑tested C TrieMap into Rust, establishes a simple baseline implementation with exhaustive tests and microbenchmarks (Criterion), then rewrites for performance using a single-heap allocation non‑packed layout, custom DST handling and 128 unsafe blocks with 21 unsafe private methods audited via Miri and Clippy lints. Benchmarks match or beat the C version and memory stays acceptable; code ships in Redis 8.8 and the public API exposes no unsafe.

AI-written summary · about

  1. 0:00Introduction to Rust migration
  2. 1:23Redis query engine overview
  3. 2:45Migration strategy
  4. 3:50Incremental rewriting process
  5. 6:24TrieMap data structure
  6. 10:54Memory layout analysis
  7. 13:16Unsafe Rust feasibility
  8. 14:15Establishing a baseline
  9. 18:51Implementing the Rust layout
  10. 24:08Managing unsafe code
  11. 28:55Defensive abstractions
  12. 31:05Conclusion and results
~/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.