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: Add non-waited semaphore check #1008

Merged
merged 1 commit into from Apr 7, 2021

Conversation

Wraith2
Copy link
Contributor

@Wraith2 Wraith2 commented Mar 25, 2021

This is a small change broken out from #902 after discussion with @cheenamalhotra . This change avoids allocation of a task and completion source on the common path where the semaphore can immediately be taken and then falls back to the previous task version if required. This avoids two allocations per packet wait.

@cheenamalhotra cheenamalhotra added this to In Progress in SqlClient v3.0 via automation Mar 31, 2021
@cheenamalhotra cheenamalhotra added this to the 3.0.0-preview2 milestone Mar 31, 2021
@cheenamalhotra cheenamalhotra added the 📈 Performance Use this label for performance improvement activities label Mar 31, 2021
@cheenamalhotra cheenamalhotra merged commit c8ad77b into dotnet:main Apr 7, 2021
SqlClient v3.0 automation moved this from In Progress to Done Apr 7, 2021
@Wraith2 Wraith2 deleted the perf-concurrentqueuewait branch April 7, 2021 17:09
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
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants