Become a sponsor to Matyas Susits
Rust compiler contributor working towards the vision of subsecond incremental rebuilds for Rust programs, even on large projects 🦀 Currently working on Relink Don’t Rebuild which can give 5-50x speedups for recompiles, depending on the project and the type edit. I also maintain cargo-remap a tool for cheaply creating git worktrees, without the need to recompile the project from scratch.
Waiting 30-60s for recompiles on large projects makes iteration and testing painful. Do it a 100 times a day, and you have spent an hour waiting for the compiler. However, there is nothing fundamental stopping subsecond rebuilds. It just needs a lot of work. Getting the toolchain there would save developer time, reduce development costs, and just simply make Rust even more fun to use.
To achieve subsecond recompiles for all edits, I plan to work on the following in the future, in no particular order:
Frontend: Rustc
- Incremental resolver and macro expansion
- Zero copy incremental cache
- Converting parts of the incremental pipeline to be push/diff based
Backend: Changes to LLVM, Cranelift or GCC
- Making optimizations inside a codegen unit (for example inlining) parallel, so that single codegen unit compilation is as fast as multiple codegen units
- Making global, cross function optimizations incremental
Linking
- Incremental linking
Developer workflow integration
- Adding a
cargo worktreesubcommand similar togit worktree, but it also sets up files and the target directory in a way that there is no need for a recompile at all. cargo remap can already do this!
1 sponsor has funded susitsm’s work.
$100 a month
SelectI'm a small company that would benefit from subsecond recompiles of Rust programs. Getting IDE feedback, speeding up coding agents, running optimized tests near instantly
$300 a month
SelectI'm a mid-sized company that would benefit from subsecond recompiles of Rust programs. Getting IDE feedback, speeding up coding agents, running optimized tests near instantly
$1,000 a month
SelectI'm a large company that would benefit from subsecond recompiles of Rust programs. Getting IDE feedback, speeding up coding agents, running optimized tests near instantly