~/talk

Strategies to speed up build iteration, or dynamic hot reloading

Talkat RustLab 2025 · 2025-11-03..11-04· [rust, developer-experience]
slides:none on file

Practical checklist of what actually speeds Rust iteration: swap the linker to LLD or experimental mold/wild, try Cranelift for faster codegen, add sccache or a shared target dir to reuse artifacts, and measure with hyperfine, cargo build --timings and cargo-llvm-lines. Replace heavy build scripts/proc-macros or pre-generate checked data, prefer dynamic dispatch or feature-gated code to avoid monomorphization blowups, run cargo-next-test and bacon file watchers for instant loops, and explore hot-reload via libloading/Subsecond or safe WASM plugins; a simple strings cleanup once gave ~5% speedup.

AI-written summary · about

  1. 0:00Rust build iteration speed
  2. 1:12Rust compilation slowness
  3. 3:39Measuring Rust build performance
  4. 5:44Rust compiler improvements
  5. 6:06Cargo profiles for faster builds
  6. 7:10Faster Rust toolchain components
  7. 8:12Incremental compilation in Rust
  8. 9:57Shared compilation caches with sccache
  9. 11:00Debugging Rust rebuilds
  10. 11:44rust-analyzer parallel builds
  11. 12:05Bazel for Rust builds
  12. 12:48CI pipelines for Rust
  13. 13:52OS optimizations for Rust builds
  14. 14:34Speeding up tests and integration tests
  15. 15:57Reducing example rebuilds
  16. 16:38Workspace parallel compilation
  17. 17:18Dynamic linking in Rust
  18. 18:21Automated builds with watchers
  19. 19:04Cleaning Rust dependencies
  20. 20:05Features to reduce compilation
  21. 22:08Macros impact on compile time
  22. 23:53Procedural macros side effects
  23. 24:35Faster build scripts
  24. 25:37Static vs dynamic dispatch
  25. 27:21Reducing generics overhead
  26. 28:24Moving logic outside Rust
  27. 30:09Hot reloading Rust with dynamic libs
  28. 31:31Hot reloading with WASM
  29. 32:36Subsecond hot patching
  30. 34:03Trade-offs for build speed
  31. 36:09Q&A
~/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.