News for hackers. Stuff that matters.
Re:How to speed up the Rust compiler some more in 2020 by ndesaulniers on Wednesday August 05, 2020 @02:52AM (#24057978)
We just found a opportunity for improving compile times for the Linux kernel when built with LLVM targeting x86 by 13% (slowdowns due to inline asm and sillyness in LLVM). Appearantly you can `perf record` the invocation of `make` for an entire kernel build, and get a 5GB trace of mostly llvm (well, mostly clang). When you start measuring and profiling, easy wins pop up everywhere. WIP

I was just today discussing with clang's code owner the idea of lazy parsing for static inline functions.

Re:How to speed up the Rust compiler some more in 2020 by mhaberl on Wednesday August 05, 2020 @03:49AM (#24058262)
That sounds great!

>slowdowns due to inline asm and sillyness in LLVM

I just hope that isn't a Chesterton's fence

Re:How to speed up the Rust compiler some more in 2020 by ndesaulniers on Wednesday August 05, 2020 @02:09PM (#24063740)
It wasn't. For a given architecture you can enable/disable extensions via +sse,-mmx,+avx,-avx512 etc. Certain enables or disables imply enabling/disabling others. How that was being computed was accidentally quadratic, and further could be memoized.
Re:How to speed up the Rust compiler some more in 2020 by db48x on Thursday August 06, 2020 @04:01AM (#24068993)
You should send that to Accidentally Quadratic (https://accidentallyquadratic.tumblr.com/). There have been no new stories there in a year, but perhaps they just need submissions.