-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CMakeLists.txt] add more information to the /Os
transition comment
#2708
Conversation
in version 19.32.31328, /Os results in binary size savings of 102K in the release DLL (that's 15.5% savings)
/Os
option/Os
transition comment
While I have no objection to expanding this comment, for the future I would like to recommend the approach of filing and citing a tracking issue, because we can easily add and edit comments in such an issue (and contributors can comment too), whereas changing comments in the codebase requires additional work for the PR process. |
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Maybe link to #2108 ? |
Note that I added override of /Os with pragma in #2434 . It was benchmark-backed: size impact was negligible, perf improvement was noticeable. It may be the way to proceed further. |
Thanks, I forgot I filed that tracking issue. I can add a citation. |
Thanks for looking into this build system comment! 😺 💬 🎉 |
I am looking at the CMake build, and was investigating whether it was worth it to remove
/Os
from the release flags. I do not believe it is, but maybe if the performance numbers are staggering it could be.