3 ms·
Strength reduction and algorithmic changes will make the most difference, but that requires a much deeper look at the code. I wouldn’t be surprised if the compi
by jdsully 6y ago
Strength reduction and algorithmic changes will make the most difference, but that requires a much deeper look at the code. I wouldn’t be surprised if the compiler found a way to reduce the number of divisions.
If you have a lot of practice the compiler is not difficult to beat. But it definitely takes some effort and study of the optimization manuals.