- Joined
- Mar 13, 2022
No.is it actually beneficial to optimize your code before compile or not? i know that it depends on the code itself but im talking about in general.
But you are right that compilers can't catch everything. But the best way to do it is to profile the program while running to see what the compiler missed (or couldn't do). Anything else and you'll likely be wasting time for meager performance gains.