Improving Rust Compile Times by 71 Percent
elijahpotter.dev·22h·
Discuss: Hacker News
Flag this post

If you maintain or work on a project in any compiled language, particularly a language that is known for having a slow compiler, I believe it is critical to regularly schedule time to do an analysis of your build process and make adjustments if necessary.

Compile-time increases slowly as a project morphs and grows. Slow enough that it often goes unnoticed. I call this “compiler creep” and believe it to be similar in many ways to lifestyle creep. By scheduling time to do a fully accounting of where your CPU cycles are going, you can preemptively save yourself (and your contributors) a lot of time.

Yesterday was the big day for me. Over the last few months, Harper’s compile time from scratch in…

Similar Posts

Loading similar posts...