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 AbstractStructureTaggerProvider.GetMultiLineRegions #74619

Conversation

ToddGrun
Copy link
Contributor

This is a private method, and the caller simply enumerates the results, so there is no need to allocate an intermediary array.

This shows up as 0.6% of allocations in the scrolling speedomenter profile that I'm looking at (in the typing section of a particularly poorly performing run)

*** relevant allocations from speedometer profile ***
image

…ions

This is a private method, and the caller simply enumerates the results, so there is no need to allocate an intermediary array.

This shows up as 0.6% of allocations in the scrolling speedomenter profile that I'm looking at (in the typing section of a particularly poorly performing run)
@ToddGrun ToddGrun requested a review from a team as a code owner July 31, 2024 16:34
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants