<story><title>Rust support in the Linux kernel</title><url>https://lkml.org/lkml/2021/12/6/461</url></story><parent_chain><item><author>NextHendrix</author><text>Will be interesting to see how much compile times suffer once rust starts being used more heavily in the kernel.&lt;p&gt;In my gentoo days I remember the compile time for firefox suddenly going up from 20 minutes to several hours which left a sour taste in my mouth with regards to rust.&lt;p&gt;Has there been much improvement in compile times in the past ~2 years?</text></item></parent_chain><comment><author>swsieber</author><text>Roughly dropped by about 30% or more? Here&amp;#x27;s a dashboard that tracks times of certain benchmark tasks by compiler version: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;perf.rust-lang.org&amp;#x2F;dashboard.html&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;perf.rust-lang.org&amp;#x2F;dashboard.html&lt;/a&gt;&lt;p&gt;Additionally, I would expect that the kernel would mostly avoid things that drive up compile time - generics and macros.&lt;p&gt;And as someone else mentioned, things should be able to be compiled in parallel.&lt;p&gt;Also, some crates for firefox are absurdly huge in terms of compile times - they are definitely outliers (IIUC). (Edit: I was thinking of this issue in Servo, so not definitely firefox releated: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;servo&amp;#x2F;servo&amp;#x2F;issues&amp;#x2F;1799&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;servo&amp;#x2F;servo&amp;#x2F;issues&amp;#x2F;1799&lt;/a&gt;)</text></comment>
<story><title>Rust support in the Linux kernel</title><url>https://lkml.org/lkml/2021/12/6/461</url></story><parent_chain><item><author>NextHendrix</author><text>Will be interesting to see how much compile times suffer once rust starts being used more heavily in the kernel.&lt;p&gt;In my gentoo days I remember the compile time for firefox suddenly going up from 20 minutes to several hours which left a sour taste in my mouth with regards to rust.&lt;p&gt;Has there been much improvement in compile times in the past ~2 years?</text></item></parent_chain><comment><author>howdydoo</author><text>&amp;gt;Has there been much improvement in compile times in the past ~2 years?&lt;p&gt;Yes. Source: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;nnethercote.github.io&amp;#x2F;2021&amp;#x2F;11&amp;#x2F;12&amp;#x2F;the-rust-compiler-has-gotten-faster-again.html&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;nnethercote.github.io&amp;#x2F;2021&amp;#x2F;11&amp;#x2F;12&amp;#x2F;the-rust-compiler-h...&lt;/a&gt;&lt;p&gt;In my experience, compile times are more a function of project structure than anything else. The compilation unit is a crate, so keep your crates nice and small, and you&amp;#x27;ll be fine.</text></comment>