Skip to content

Move version option out of middleware #1969

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

Merged

Conversation

jonsequitur
Copy link
Contributor

No description provided.

@@ -38,7 +38,7 @@ public override ICommandHandler GetCommandHandler()
}
}

public override ModelDescriptor Parent => ModelDescriptor.FromType(_handlerMethodInfo.ReflectedType);
public override ModelDescriptor Parent => ModelDescriptor.FromType(_handlerMethodInfo.ReflectedType!);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jonsequitur jonsequitur reopened this Nov 16, 2022
@jonsequitur jonsequitur force-pushed the version-option-redesign-experiment branch from 3d2caac to 1969612 Compare November 16, 2022 02:32
jonsequitur and others added 2 commits November 17, 2022 11:48
…sign-experiment

# Conflicts:
#	src/System.CommandLine/Builder/CommandLineBuilderExtensions.cs
#	src/System.CommandLine/Option.cs
#	src/System.CommandLine/Parsing/ParseResultVisitor.cs
Copy link
Member

@adamsitnik adamsitnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! The allocations have dropped nicely!

Method Args before after
DefaultsSync String[0] 10,584 B 10,264 B
DefaultsAsync String[0] 10,584 B 10,264 B
MinimalSync String[0] 3,256 B 3,264 B
MinimalAsync String[0] 3,256 B 3,264 B
DefaultsSync String[4] 12,080 B 11,760 B
DefaultsAsync String[4] 12,080 B 11,760 B
MinimalSync String[4] 4,752 B 4,760 B
MinimalAsync String[4] 4,752 B 4,760 B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants