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

Improve performance of enumerating empty collections.#9

Merged
dotnet-bot merged 3 commits intodotnet:masterfrom
AArnott:EnumerationPerfFixes
Nov 11, 2014
Merged

Improve performance of enumerating empty collections.#9
dotnet-bot merged 3 commits intodotnet:masterfrom
AArnott:EnumerationPerfFixes

Conversation

@AArnott
Copy link
Copy Markdown

@AArnott AArnott commented Nov 11, 2014

Avoid perf hit from acquiring a reusable stack object to enumerate a collection that is empty, and thus requires no stack object.
This improves ImmutableSortedDictionary directly, and both ImmutableDictionary and ImmutableHashSet benefit as well since they use ImmutableSortedDictionary internally.

Avoid perf hit from acquiring a reusable stack object to enumerate a collection that is empty, and thus requires no stack object.
This improves ImmutableSortedDictionary directly, and both ImmutableDictionary and ImmutableHashSet benefit as well since they use ImmutableSortedDictionary internally.
@dotnet-bot dotnet-bot merged commit ab1e10f into dotnet:master Nov 11, 2014
@AArnott AArnott deleted the EnumerationPerfFixes branch November 11, 2014 23:51
SidharthNabar pushed a commit to SidharthNabar/corefx that referenced this pull request Sep 1, 2015
Merge corefx/master into sn2.
@karelz karelz modified the milestone: 1.0.0-rtm Dec 3, 2016
Olafski pushed a commit to Olafski/corefx that referenced this pull request Jun 15, 2017
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