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.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of minutes

minutes

Photo of crates

crates

Photo of Rust compile times

Rust compile times

Related news:

News photo

Daddy of a mistake by GoDaddy took Zoom offline for about 90 minutes

News photo

Google introduces Firebase Studio, an end-to-end platform that builds custom apps in-browser, in minutes

News photo

Show HN: I turned my kid's worksheet into a math game in 10 minutes with Claude