#1316·rerun

Improve compile times

Author: WumpfCreated Feb 15, 2023Updated Sep 7, 2026
Labelsenhancementgood first issuehelp wanted🎄 tracking issue🧘 kaizen⏱ build-times

(edited by @emilk)

Improve build times, and aspire to reduce number of dependencies and code bloat in the process.

Some useful tools include:

See also:

Reducing dependencies

Some ideas:

  • replace clap with something simpler, like pico-args
  • replace sha2 with a simpler hash
  • replace chrono with time
  • replace image crate with https://github.com/etemesi254/zune-image
  • re_web_server should be able to use something must simpler than hyper+tokio
  • replace lazy_static with once_cell ?
  • remove strum
  • enumset can be replaced with something simpler (maybe by macro_rules!)
  • reduce naga features?
  • crossbeam (std::sync::mpsc is now using the same implementation) - though crossbeam compiles in 2s, so probably not worth it

Done:

Other tasks

Other

We have some instructions for improving build times in https://github.com/rerun-io/rerun/blob/main/BUILD.md#improving-compile-times