Skip to content

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 Wraith2 force-pushed the perf-readasynccachecallback branch from d12e570 to 3adf6ed Compare February 5, 2020 23:04
@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 📈 Issues that are targeted to performance improvements. 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 📈 Issues that are targeted to performance improvements.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants