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 in TypeSymbolExtensions.IsAtLeastAsVisibleAs #75401

Merged

Commits on Oct 4, 2024

  1. Reduce allocations in TypeSymbolExtensions.IsAtLeastAsVisibleAs

    This method showed up in multiple profiles as about 0.6% of allocations in the Roslyn CA process in the csharp editing speedometer test.
    
    This simply avoids those allocations by switching to a static lambda using the arg data to pass in a pooled object. Note that the arg passed into VisitType needed to be a class to allow the ref parameter to change it's value.
    ToddGrun committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    69293a1 View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2024

  1. Configuration menu
    Copy the full SHA
    e70d8fa View commit details
    Browse the repository at this point in the history