‹ BackHN Continuity

Thread

How to speed up the Rust compiler in September 2026

279 points · 171 comments · trickypr

  1. hnp9j9qtda · · focus · HN ↗
    Biggest win for me was splitting one fat crate into three, parallelism got real.
    1. rapind · · focus · HN ↗
      I am experimenting with this in my project right now. I haven't reached a verdict yet, but in theory it sounds good. I think you're still paying the linking cost though?
      1. geauxvirtual · · focus · HN ↗
        Yes.

        Splitting out a project into multiple crates reduces what needs to be recompiled during development. I tend to break out areas of my application that aren't going to change regularly so I'm only having to rebuild the main application.

        In a production scenario where you're probably building your application in some CI environment, unless you cache the release build artifacts to re-use when applicable, the entire project will be rebuilt every run.

        1. rapind · · focus · HN ↗
          It’s honestly my biggest issue right now during development. I’m refactoring into a “vertical slice” architecture and then will try crating by feature… fingers crossed.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.