Skip to content

Skip lambda allocation in 'EventSourceCache' #1977

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

Merged
merged 2 commits into from
Apr 12, 2025

Conversation

Sergio0694
Copy link
Member

Small optimization on .NET 8+, where we have the additional overload taking args.
This skips allocating the delegate + display class for the closure every time the method is called.

@Sergio0694 Sergio0694 added performance Related to performance work gc Related to garbage collection labels Apr 10, 2025
@Sergio0694 Sergio0694 requested a review from manodasanW April 10, 2025 23:11
@Sergio0694 Sergio0694 merged commit 5215dfa into staging/2.3 Apr 12, 2025
12 checks passed
@Sergio0694 Sergio0694 deleted the dev/no-capture-EventSourceCache branch April 12, 2025 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gc Related to garbage collection performance Related to performance work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants