-
Notifications
You must be signed in to change notification settings - Fork 8.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
Replace conhost's fmt::format strings with FMT_COMPILEd ones #9581
Conversation
This reduces by 10% the binary size of OpenConsole x64 Release. Note | OpenConsole.exe ------ | --------------------------- Before | 1156096 After | 1037312 Delta | -118784 %Delta | -10.27%
@@ -94,6 +94,7 @@ | |||
|
|||
// {fmt}, a C++20-compatible formatting library | |||
#include <fmt/format.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, if you're "replacing" it, we can't remove this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the pre-roll include for all projects in our entire solution ;) and it actually also is the main gateway into fmt.
There is no FMT_COMPILE without fmt::format
, and fmt::format
comes from fmt/format.h
Hello @DHowett! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
This reduces by 10% the binary size of OpenConsole x64 Release. Note | OpenConsole.exe ------ | --------------------------- Before | 1156096 After | 1037312 Delta | -118784 %Delta | -10.27% (cherry picked from commit d972ea2)
🎉 Handy links: |
🎉 Handy links: |
This reduces by 10% the binary size of OpenConsole x64 Release.