Skip to content

Conversation

Kahbazi
Copy link
Member

@Kahbazi Kahbazi commented Sep 22, 2021

Does it make sense to avoid creating the List for single endpoint, since one RouteHandlerBuilder is being created for each minimal API endpoint?

@Kahbazi Kahbazi requested a review from javiercn as a code owner September 22, 2021 19:11
@ghost ghost added area-runtime community-contribution Indicates that the PR has been added by a community member labels Sep 22, 2021
@halter73
Copy link
Member

I think this is a fine change. I'm curious though. Was there any reason for optimizing this code path in particular @Kahbazi?

@halter73 halter73 enabled auto-merge (squash) September 23, 2021 20:08
@Kahbazi
Copy link
Member Author

Kahbazi commented Sep 23, 2021

@halter73 No reason! Just trying to reducing allocation wherever I could find.

@halter73 halter73 changed the title Avoid creating list for single endpoint Prevent creating list for single endpoint Sep 23, 2021
@halter73 halter73 disabled auto-merge September 23, 2021 20:29
@halter73 halter73 enabled auto-merge (squash) September 23, 2021 20:30
@halter73 halter73 merged commit 3f55325 into dotnet:main Sep 23, 2021
@ghost ghost added this to the 7.0-preview1 milestone Sep 23, 2021
@Kahbazi
Copy link
Member Author

Kahbazi commented Sep 24, 2021

@halter73 Does this change worth to also be added to 6.0?

@ghost
Copy link

ghost commented Sep 24, 2021

Hi @Kahbazi. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context.

@Kahbazi Kahbazi deleted the kahbazi/SingleEndpointBuilder branch November 1, 2021 20:36
@davidfowl davidfowl added the Perf label Aug 26, 2022
@amcasey amcasey added area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions and removed area-runtime labels Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions community-contribution Indicates that the PR has been added by a community member Perf

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants