Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

@Wraith2
Copy link
Contributor

@Wraith2 Wraith2 commented Dec 18, 2018

Some work was done in #34047 to limit allocation of closures and move to explicit state passing for continuations. This PR continues/finishes that work and cleans up some of the async code to be more readable.

AsyncHelper had a few methods which took unused parameters, either internal or external connections, with names that indicated those connections were going to be closed. The parameters were never used. I judged these to be dead code and eliminated the parameters and all call sites using them.

the function ContinueTaskPend was removed as dead code with no callers.

I recommend looking at the changes side by side, the inline diff makes them look confusing

/cc @saurabh500 @afsanehr @keeratsingh

…used

cleanup ContinueWith calls to pass state parameterswhere doing so is trivial or advantageous
Copy link
Contributor

@saurabh500 saurabh500 left a comment

Choose a reason for hiding this comment

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

Overall looks good to me. Left some Nit: comments.

@Wraith2
Copy link
Contributor Author

Wraith2 commented Jan 9, 2019

@dotnet-bot test Windows x86 Release Build please

@saurabh500
Copy link
Contributor

@Wraith2 There are some merge conflicts now. Can you take care of this?

@Wraith2
Copy link
Contributor Author

Wraith2 commented Jan 10, 2019

Done.

@AfsanehR-zz AfsanehR-zz merged commit abd0482 into dotnet:master Jan 16, 2019
@Wraith2 Wraith2 deleted the sqlperf-asynchelper branch January 17, 2019 00:49
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
SqlClient minor memory improvements

Commit migrated from dotnet/corefx@abd0482
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants