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.

Disk space and LTO improvements in Rustc and Cargo

4 pointsby BadInformaticsalmost 5 years ago

1 comment

nindalfalmost 5 years ago
I’m excited by these changes. Rust compilation times, although slow, have been improving by 20-40% every year. The changes in the linked post alone improve LTO build times by 4-20%.<p>I’m also looking forward to other changes that people have been working on.<p>- A debug backend that uses Cranelift instead of LLVM improves debug compile times by 20-50%.<p>- Using pre-compiled release binaries for procedural macros. Today this causes a major hit to compile times because the macro needs to be compiled, then do some codegen, and then the compilation of actual code + generated code proceeds.<p>- In the long term (probably years), the compiler is able to run interactively, recompiling when any changes are made.