c# - In which cases are IEnumerable<T>.Count optimized? -
I have seen that method is a prerequisite for this case to optimize it when IEnumerable & Lt; T & gt;
passed a really iconging & lt; T & gt;
. . T & gt;
this I think is that IEnumerable Based on the & lt started the code> can be used as a readable view of the collection, without performance loss, which I originally had to do with
IEnumerable & lt; T & gt;
Could be used without requiring the API's base. Optimizes calculation
still when IEnumerable & LT; T & gt;
Select the result of a
more than a statement ICollection
, but this case is not optimized based on the reflected code, and walk through all the elements Necessary.
Do you take the same conclusions from Reflection? What could be the reason behind the lack of this optimization? I feel that a lot of time has been spent in this common operation.
Comments
Post a Comment