Skip to content
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

Merged
1 commit merged into from Mar 23, 2021

Conversation

DHowett
Copy link
Member

@DHowett DHowett commented Mar 22, 2021

This reduces by 10% the binary size of OpenConsole x64 Release.

Note OpenConsole.exe
Before 1156096
After 1037312
Delta -118784
%Delta -10.27%

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>
Copy link
Member

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?

Copy link
Member Author

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

@DHowett DHowett added the AutoMerge Marked for automatic merge by the bot when requirements are met label Mar 23, 2021
@ghost
Copy link

ghost commented Mar 23, 2021

Hello @DHowett!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

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 (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit d972ea2 into main Mar 23, 2021
@ghost ghost deleted the dev/duhowett/compile branch March 23, 2021 02:21
DHowett added a commit that referenced this pull request Apr 13, 2021
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)
@ghost
Copy link

ghost commented Apr 14, 2021

🎉Windows Terminal v1.7.1033.0 has been released which incorporates this pull request.:tada:

Handy links:

@ghost
Copy link

ghost commented Apr 14, 2021

🎉Windows Terminal Preview v1.8.1032.0 has been released which incorporates this pull request.:tada:

Handy links:

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AutoMerge Marked for automatic merge by the bot when requirements are met
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants