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

perf: Cache common callbacks with a single state parameter #378

Merged
merged 1 commit into from
Feb 6, 2020

Conversation

Wraith2
Copy link
Contributor

@Wraith2 Wraith2 commented Jan 12, 2020

In a couple of common paths when reading data there are async context captures generated which use a single variable from the enclosing scope. These can be optimized so that a static delegate to the implementation is stored and the variable passed as state, this removes the closure allocation.

Copy link
Contributor

@David-Engel David-Engel left a comment

Choose a reason for hiding this comment

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

LGTM

@cheenamalhotra
Copy link
Member

@Wraith2
Please update the branch from (master) branch to trigger pipelines once again.

Thanks!

@Wraith2
Copy link
Contributor Author

Wraith2 commented Feb 6, 2020

Done, only on AE test is failing and I've been nowhere near it.

@cheenamalhotra cheenamalhotra added the 📈 Performance Use this label for performance improvement activities label Feb 6, 2020
@cheenamalhotra cheenamalhotra added this to the 2.0.0-preview2 milestone Feb 6, 2020
@cheenamalhotra cheenamalhotra merged commit 8e8fe74 into dotnet:master Feb 6, 2020
@Wraith2 Wraith2 deleted the perf-readasynccachecallback branch February 6, 2020 08:32
panoskj added a commit to panoskj/SqlClient that referenced this pull request Aug 26, 2022
panoskj added a commit to panoskj/SqlClient that referenced this pull request Nov 21, 2022
panoskj added a commit to panoskj/SqlClient that referenced this pull request Nov 21, 2022
panoskj added a commit to panoskj/SqlClient that referenced this pull request Nov 21, 2022
panoskj added a commit to panoskj/SqlClient that referenced this pull request Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📈 Performance Use this label for performance improvement activities
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants