-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Reuse cancellation token sources in the Kestrel #30390
Comments
Thanks for contacting us. |
I am going through the PRs in Continuous Improvement project as an optimization learning exercise.
Could you please share what tooling was used to generate the above data ? Thank You! |
Visual Studio 2019's new allocation profiler https://docs.microsoft.com/en-us/visualstudio/profiling/dotnet-alloc-tool?view=vs-2019. You can copy as markdown 😄 |
Today we use the request aborted token when writing large responses in various places. We can reuse these tokens across requests if they haven't been cancelled. We can take advantage of dotnet/runtime#48492 when it becomes available.
Here's what a simple application that uses the request aborted token looks like:
Here's the allocation profile after ~10K requests
The text was updated successfully, but these errors were encountered: