IEnumerable.Count() performance #46036
Labels
area-System.Linq
tenet-performance
Performance related issue
untriaged
New issue has not been triaged by the area owner
Description
IEnumerable.Count() in System.Linq is optimized for ICollection type, should it has a fast path for IReadOnlyCollection to achieve better performace, too ?
runtime/src/libraries/System.Linq/src/System/Linq/Count.cs
Line 11 in 010a565
If it is an improvement, I can provide a pull request for this. 😄
Thanks
The text was updated successfully, but these errors were encountered: