It is well known that favour fast code not always faster than favour small code . The compiler heuristic is not omniscient, and it may be wrong. In some cases, smaller code is faster than faster code.
Use /O2 for quick code โ the compiler knows better how various settings can interact.
Wait. Have you profiled unoptimized code? This is madness. Compiler optimization is not like manual optimization - they are always performed, and there is no reason to profile them - you can identify bottlenecks that do not exist, etc. If you need accurate profiling data, you get a compiler to make it absolute best, and then a profile.
You can also familiarize yourself with the help of profiled optimization, which will help optimize the compiler in some impressive models.
Puppy source share