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

Remove per connection PipeOptions #30769

Merged
merged 1 commit into from
Mar 9, 2021
Merged

Conversation

davidfowl
Copy link
Member

@davidfowl davidfowl commented Mar 9, 2021

  • This changes the socket transport to remove the per connection allocation of PipeOptions.

Takes advantage of dotnet/runtime#49270

@BrennanConroy we should do something similar in SignalR

- This changes the socket transport to remove the per connection allocation of PipeOptions.
@davidfowl davidfowl force-pushed the davidfowl/singleton-pipe-options branch from 7cb3eb0 to 1c14fb6 Compare March 9, 2021 09:46
@davidfowl davidfowl mentioned this pull request Mar 9, 2021
Comment on lines +205 to +210
private class Settings
{
public PipeScheduler Scheduler { get; init; } = default!;
public PipeOptions InputOptions { get; init; } = default!;
public PipeOptions OutputOptions { get; init; } = default!;
}
Copy link
Member

Choose a reason for hiding this comment

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

nit: init + nullable is messy. Adding a ctor + readonly properties cleans things up

Copy link
Member Author

Choose a reason for hiding this comment

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

nullable is messy. I don't want to reset the PR for this 😄 . I will look at it afterwards if that's OK

@davidfowl davidfowl merged commit 7e33542 into main Mar 9, 2021
@davidfowl davidfowl deleted the davidfowl/singleton-pipe-options branch March 9, 2021 21:04
@davidfowl davidfowl added this to the 6.0-preview3 milestone Apr 2, 2021
@amcasey amcasey added area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions and removed area-runtime labels Jun 6, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants