TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How to speed up the Rust compiler in April 2022

74 点作者 nnethercote大约 3 年前

3 条评论

lucasyvas大约 3 年前
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.
lionside大约 3 年前
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>
Shadonototra大约 3 年前
when things are slow, it is easy to show big numbers like that, but in the end it still is VERY slow
评论 #31016316 未加载