Skip to content

Conversation

@stephentoub
Copy link
Member

My recent changes to improve perf of some LINQ iterators by implementing IList<T> caused Select on an empty partition to start preferring a path that wasn't optimized for empty. This fixes it. I searched and don't see any other operators that would be similarly negatively affected.

Fixes the one related benchmark from #88376 (EmptyTakeSelectToArray). None of the other benchmarks there are related to my previous change.

My recent changes to improve perf of some LINQ iterators by implementing `IList<T>` caused Select on an empty partition to start preferring a path that wasn't optimized for empty.  This fixes it.  I searched and don't see any other operators that would be similarly negatively affected.
@ghost ghost added the area-System.Linq label Jul 5, 2023
@ghost ghost assigned stephentoub Jul 5, 2023
@ghost
Copy link

ghost commented Jul 5, 2023

Tagging subscribers to this area: @dotnet/area-system-linq
See info in area-owners.md if you want to be subscribed.

Issue Details

My recent changes to improve perf of some LINQ iterators by implementing IList<T> caused Select on an empty partition to start preferring a path that wasn't optimized for empty. This fixes it. I searched and don't see any other operators that would be similarly negatively affected.

Fixes the one related benchmark from #88376 (EmptyTakeSelectToArray). None of the other benchmarks there are related to my previous change.

Author: stephentoub
Assignees: -
Labels:

area-System.Linq

Milestone: -

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants