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

Remove delegate/array allocations from EventMap.NotifySources #4756

Merged
merged 2 commits into from
Aug 17, 2021

Conversation

stephentoub
Copy link
Member

Description

It's allocating an array just to pass in a single thing... just pass it in.
And it's allocating a delegate when a compiler-cached one would suffice.

Customer Impact

Less memory allocation.

Regression

No

Testing

Just CI

Risk

Minimal. It's just removing some unecessary allocations.

@stephentoub stephentoub requested a review from a team as a code owner June 25, 2021 20:52
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Jun 25, 2021
@ghost ghost requested review from fabiant3, ryalanms and SamBent June 25, 2021 20:52
@ryalanms ryalanms merged commit 60dc48b into dotnet:main Aug 17, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Apr 8, 2022
@stephentoub stephentoub deleted the eventmapnotify branch September 4, 2024 14:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants