Skip to content

Conversation

Wraith2
Copy link
Contributor

@Wraith2 Wraith2 commented Jan 26, 2021

I did a memory profile of the test case in #659 and noted some easy to fix issues:

Untitled

The ConnectionState change was using .Equals(object) which caused boxing, it's just changed to state value capture and a direct comparison. The ConcurrentQueueSemaphore simply changes a delegate instantiation and context capture to a static delegate and state object parameter invocation as we've used elsewhere to reduce allocations.

@cheenamalhotra cheenamalhotra added the Performance 📈 Issues that are targeted to performance improvements. label Feb 1, 2021
@cheenamalhotra cheenamalhotra merged commit 83584a1 into dotnet:master Feb 2, 2021
@Wraith2 Wraith2 mentioned this pull request Feb 3, 2021
@Wraith2 Wraith2 deleted the perf10 branch February 5, 2021 10:32
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