TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How to speed up the Rust compiler in April 2022

74 pointsby nnethercoteabout 3 years ago

3 comments

lucasyvasabout 3 years ago
Unrelated to this good work directly, but I experienced a funny moment yesterday. My new employer issued me a 16 inch M1 Pro - naturally, I installed Rust :)<p>The thing cargo builds (in release, no less) about as fast as my previous machine could npm install on a particular project.<p>I realize this is all M1 just absolutely chewing through it, but as long as compiler time improvements remain steady and constant I don&#x27;t think I&#x27;ll have a ton to complain about.
lionsideabout 3 years ago
Tytytyty!!<p>I know this is not realistic, but the only thing rust is missing is faster compilation times. To be fair, it’s already super fast.<p>I was adding a repl[1] to create-react-app[2] (trying to achieve something like RoR’s console) and it took way too long for it to boot simply because the dependencies for something like a full scale web app take long to compile. Even with incremental compilation, that first boot time was too much.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;evcxr&#x2F;blob&#x2F;main&#x2F;evcxr_repl" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;evcxr&#x2F;blob&#x2F;main&#x2F;evcxr_repl</a><p>[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;Wulf&#x2F;create-rust-app" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Wulf&#x2F;create-rust-app</a>
Shadonototraabout 3 years ago
when things are slow, it is easy to show big numbers like that, but in the end it still is VERY slow
评论 #31016316 未加载