-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Fix which path is taken in Enumerable.Select for empty partition #88425
Conversation
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.
Tagging subscribers to this area: @dotnet/area-system-linq Issue DetailsMy recent changes to improve perf of some LINQ iterators by implementing 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.Fixes the one related benchmark from #88376 (EmptyTakeSelectToArray). None of the other benchmarks there are related to my previous change.