Skip to content

Remove Console.WriteLine call for -h output - #536

Merged
Sergio0694 merged 1 commit into
mainfrom
dev/remove-cli-writeline
Jun 25, 2023
Merged

Sergio0694 merged 1 commit into
mainfrom
dev/remove-cli-writeline

Conversation

@Sergio0694

Copy link
Copy Markdown
Owner

Description

This PR removes the Console.WriteLine call in the CLI sample when -h was passed.
Saves 65 KB on the x64 binary for NativeAOT (tested on .NET 8 Preview 7):

  • baseline: 1,398 KB
  • no text: 1,333 KB

@Sergio0694 Sergio0694 added the optimization 🚀 Performance improvement to existing APIs label Jun 25, 2023
@Sergio0694
Sergio0694 merged commit ee67798 into main Jun 25, 2023
@Sergio0694
Sergio0694 deleted the dev/remove-cli-writeline branch June 25, 2023 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

optimization 🚀 Performance improvement to existing APIs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant