Skip to content

Move version option out of middleware#1969

Merged
adamsitnik merged 9 commits intodotnet:mainfrom
jonsequitur:version-option-redesign-experiment
Feb 2, 2023
Merged

Move version option out of middleware#1969
adamsitnik merged 9 commits intodotnet:mainfrom
jonsequitur:version-option-redesign-experiment

Conversation

@jonsequitur
Copy link
Copy Markdown
Contributor

No description provided.

}

public override ModelDescriptor Parent => ModelDescriptor.FromType(_handlerMethodInfo.ReflectedType);
public override ModelDescriptor Parent => ModelDescriptor.FromType(_handlerMethodInfo.ReflectedType!);
Copy link
Copy Markdown
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
Copy Markdown
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