Skip to content

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 the 3.0.0-preview2 milestone Mar 31, 2021
@cheenamalhotra cheenamalhotra added the Performance 📈 Issues that are targeted to performance improvements. label Mar 31, 2021
@cheenamalhotra cheenamalhotra merged commit c8ad77b into dotnet:main 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 📈 Issues that are targeted to performance improvements.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants