Re:LINQ Ruined My Favorite Interview Question
by cmircea on Friday July 12, 2013 @02:48AM
(#6031270)
Under the covers when it is compiled it's turned into a select. That way it it only does N counts, not potentially N log N (for each comparison in the orderby), where N is the number of items you enumerate (so if you .Take() just 10 it doesn't really matter).
[ Parent
| on HN ]
There are no comments on this comment yet.