~/talk

The Importance of Not Over-Optimizing in Rust

Talkat RustConf 2021 · 2021-09-14..09-15· [rust]
slides:none on file

A concrete example shows using the serde crate to parse JSON into structs with owned String fields then changing to borrowed strings with lifetimes yields about a 1.5x speedup over the owning version, while the original Rust version already runs nearly 20x faster than Python for the sample. Advice includes prefer owned values early, use clone or wrap shared data in Rc/Arc, and always benchmark with release optimizations enabled.

AI-written summary · about

~/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.