3 ms·
One thing that was not addressed is why the effort is not put into making the parallel compiler default. It would give a 8x speedup on a developer machine compa
by xiphias2 7y ago
One thing that was not addressed is why the effort is not put into making the parallel compiler default. It would give a 8x speedup on a developer machine compared to 10% speedups from these optimizations, especially when AMD releases the Zen 2 architecture for laptops.
- swsieber 7y agoAny gains in the single threaded model (usually) carry over to the parallel model. And maybe there is a separate effort on making the parallel compiler working better. Maybe they are working on it in parallel.
- xiphias2 7y agoI understand that there's a separate effort, but I don't see many blog posts about it, and I see that as something that should be prioritised. Rust was partly created because most of the transistors on the computers are heavily underutilized, and multiprocessing with C++ correctly is extremely hard. Rust compiler is written in Rust, so it would be a perfect showcase of taking advantage of the multi-processing safety of the language. I know that there are global variables in the compiler that the compiler team is getting rid of, but at this point that should be the main focus, as I see that most of the easy huge gains of single-threaded improvements are over.
- ronlobo 7y agoHaha, nice pun there!
- CJefferson 7y agoThe problem is lots of bits are hard to parallelise. Also, rust already does quite a bit in parallel, it can usually fill my 6 CPUs when building multiple crates.
- xiphias2 7y agoI see, I'm looking at the Rustc parallel meeting videos right now, I just wish there was a more organized blog for that team, or at least it would be easier to find the meeting notes. https://www.youtube.com/watch?v=Wh20eXfMOSk&t=8s https://www.youtube.com/watch?v=Wh20eXfMOSk&t=8s I found the meeting notes: https://hackmd.io/_1S8_ChMSa2N8mRw6EsGPA https://hackmd.io/_1S8_ChMSa2N8mRw6EsGPA