3 ms·
Does the compilation time bother anyone?
by toughruck 3y ago
Does the compilation time bother anyone?
- sph 3y agoWhen's the last time you have compiled the kernel? I bet waiting for Rust drivers to compile on a modern CPU should not take much longer than the last time I compiled the kernel by hand on a Core 2 Duo, circa 2013
- atlasduo 3y agoYou make two short-sighted assumptions: 1. "Nobody compiles a kernel these days". Sure, maybe not for daily use for most, but lots of people do for work and experimentation. Also, Gentoo. 2. "Everybody runs a modern CPU". Plenty of people still run decade-old hardware, and even older, because it works and in that decade objectives of PC have not significantly changed, so why would hardware?
- throawayonthe 3y ago[dead]
- sph 3y agoI honestly do not think the Linux Kernel team should worry too much about the very small niche of people that insist on compiling on slow CPUs. Cross compiling exists, and 99% of Linux users run a precompiled vmlinuz binary. On the other hand, the Rust language team should do their utmost to improve the speed of their compiler.
- thelastparadise 3y agoI agree with you, but: This driver is almost certainly not targeting 10 year old hardware. So when you define your kernel config, you wouldn't include this driver. The new code would be entirely skipped over at compile time. (Still think "rewrite everything in rust to solve all our problems" is a bit dumb.)
- nebula8804 3y ago>When's the last time you have compiled the kernel? 2010. I needed to do so for my Linux Kernel university class. It took 8 hours on this piece of junk Pentium 4 I found in the school's e-waste bin. You know those Black Dell Optiplex machines that were everywhere like a plague. They were days of such stress but also so much bliss.
- redeeman 3y ago8 hours seems unreasonably long for a p4, especially in 2010
- MrFurious 3y agoIn 2005, i compiled linux kernel in 15 minutes on AMD Duron 700. Is true that was a very optimized kernel for my architecture, but i think that the typical kernel with all modules could get 1 hour or something.
- nebula8804 3y agoDamn, thats pretty fast. Maybe I was doing something wrong in the config step?
- redeeman 3y agonot sure how much can really be done wrong, worst case would probably be an allyesconfig, which is huge, and while it was still big in 2010, it was considerably less so than now
- rincebrain 3y agoI cannot overstate how poor the performance of various P4s was at the time. Especially if you had some crap P4 that made modern gaming laptops look well-circulated.
- rincebrain 3y agoGiven that those optiplexes also had what is called "capacitor plague", that's more literal than you might have thought.