Skip to content

Use span-based IndexOfAny in ModuleBuilder#32299

Merged
stephentoub merged 1 commit intodotnet:masterfrom
stephentoub:modulebuildercharalloc
Feb 15, 2020
Merged

Use span-based IndexOfAny in ModuleBuilder#32299
stephentoub merged 1 commit intodotnet:masterfrom
stephentoub:modulebuildercharalloc

Conversation

@stephentoub
Copy link
Member

Removes an unnecessary char[] allocation per iteration.

(Also simplified one IndexOfAny usage in Environment.cs as I was auditing other IndexOfAny calls.)

Removes an unnecessary char[] allocation per iteration.

Also simplified one IndexOfAny usage in Environment.cs.
@stephentoub stephentoub merged commit 3ef2c11 into dotnet:master Feb 15, 2020
@stephentoub stephentoub deleted the modulebuildercharalloc branch February 15, 2020 11:09
@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2020
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.

2 participants