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

Reduce allocations when creating CallbackData instances #2524

Merged
merged 1 commit into from
Dec 16, 2016

Conversation

ReubenBond
Copy link
Member

Saves 2 allocations per message sent

tryResendMessage,
context,
message,
unregisterCallback,
Copy link
Member Author

@ReubenBond ReubenBond Dec 16, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of allocating for the TryResendMessage method group and the UnRegisterCallback closure, those parameters are allocated once per InsideRuntimeClient/OutsideRuntimeClient and passed along in every call.

@sergeybykov sergeybykov merged commit 165e804 into dotnet:master Dec 16, 2016
@ReubenBond ReubenBond deleted the reduce-allocs-callbackdata branch December 16, 2016 00:17
@ReubenBond ReubenBond added area-performance All performance related issues and removed performance labels Mar 24, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-performance All performance related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants