Get the latest tech news
Cutting down Rust compile times from 30 to 2 minutes with one thousand crates
We'll explore how we can leverage all cores on a machine with rustc using many crates to speed up compilation.
We’ve already pulled a lot of tricks in the past to speed up compilation: type erasure, aggressive code deduplication, limiting codegen lines. What happens is that most of the operators (and their crates) stay identical (the hash doesn't change), and rustc can re-use most of the previously compiled artifacts. By simply changing how we generate Rust code under the hood, we’ve made Feldera’s compile times scale with your hardware instead of fighting it.
Or read this on Hacker News