Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Avoid some unnecessary allocation in MethodBuilder.ToString #21758

Merged
merged 1 commit into from
Jan 3, 2019

Conversation

stephentoub
Copy link
Member

This method already allocates a ton, and it's not going to be hot-path, but it's annoying me showing up in queries for string.Concat usage, so I'm fixing it :)

This method already allocates a ton, and it's not going to be hot-path, but it's annoying me showing up in queries for string.Concat usage, so I'm fixing it :)
@MarcoRossignoli
Copy link
Member

in queries for string.Concat usage,

@stephentoub are you using custom Roslyn analyzers or simple "text search"?

@stephentoub
Copy link
Member Author

@stephentoub are you using custom Roslyn analyzers or simple "text search"?

Neither: .NET Reflector's Analyze that finds all references.

@stephentoub
Copy link
Member Author

@dotnet-bot test Windows_NT x64 Checked CoreFX Tests please

@stephentoub stephentoub merged commit 472181f into dotnet:master Jan 3, 2019
@stephentoub stephentoub deleted the methodbuildertostring branch January 3, 2019 00:57
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…oreclr#21758)

This method already allocates a ton, and it's not going to be hot-path, but it's annoying me showing up in queries for string.Concat usage, so I'm fixing it :)

Commit migrated from dotnet/coreclr@472181f
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants