3 ms·
That article is 100% right, but gmm said "do another 20" - that's not really what hotspot people expect to do. They think there's one or two hotspots that they
by IshKebab 3y ago
That article is 100% right, but gmm said "do another 20" - that's not really what hotspot people expect to do. They think there's one or two hotspots that they need to optimise and then they'll get a 10x speedup.
You can definitely do 20-100 small optimisations and get a 2-3x speedup.
The best example I've seen of that is Nicholas Nethercote's work on speeding up the Rust compiler. A ton of tiny speed improvements that add up to 2x or 3x speed improvements overall.
I've done similar work on optimising a compiler. You're never going to get 10x without architectural changes but you can get 3x with a lot of work.
Of course the "we'll just optimise the hotspots" people have written their code so badly they need at least 10x.