Skip to content

small perf changes - #889

Merged
cheenamalhotra merged 2 commits into
dotnet:masterfrom
Wraith2:perf10
Feb 2, 2021
Merged

cheenamalhotra merged 2 commits into
dotnet:masterfrom
Wraith2:perf10

Conversation

@Wraith2

@Wraith2 Wraith2 commented Jan 26, 2021

Copy link
Copy Markdown
Contributor

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
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