2 ms·
> Um, that multiplication is already outside the loop. You said before that one shouldn't trust the optimiser, but it did the right thing here... It's even mor
by adwn 10y ago
> Um, that multiplication is already outside the loop. You said before that one shouldn't trust the optimiser, but it did the right thing here...
It's even more ironic given that the author wrote right above that part:
"Always profile the program’s performance."
If they'd actually followed their own advice, they'd have noticed that performance was not improved through this manual "optimization".