Can you describe how to make rustc 10x as fast? Everyone says that of course it’s possible, 10x is easy to get, it’s just that nobody cares about compiler perf, etc. etc., And then everyone who tries ends up with, like, a perf boost of 10% if that.
-
-
Amdahl’s Law in action: https://github.com/bjorn3/rustc_codegen_cranelift/issues/133#issuecomment-450382679 … Note that the bottlenecks are in the parts of Rust that don’t have analogues in old languages with fast compilers: borrow check and metadata encoding.
-
Well, given I keep being told to actually measure stuff when I have an idea, I still want to see those peephole optimisations in action before I say they are not that much of an improvement.
End of conversation
New conversation -
-
-
Completely agree it takes long hard work and subsystem rewrites and one is constantly and disappointingly hitting Amdahl’s law. Just saying those subsystems still soaking up the time _can_ be redone (painfully and slowly) for yet more perf if it’s considered high enough priority.
-
More laziness, caching, fast paths, incrementality, parallelizing, memory locality and allocation limiting .. and also entire algorithm and representation redesign, etc etc etc. I know these things are happening and am excited by several of them! Understand it takes time.
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.