Coffeehouse Post

Single Post Permalink

View Thread: Erik Meijer: Microsoft completely messed it up (with .NET)
  • User profile image

    , Richard.Hein wrote

    @RealBboy360: Even talking about "speed" of linq doesn't make sense.  It's like saying, "the speed of functions suck".  It depends entirely on the function.

    LINQ is an implementation though (LINQ-to-Objects even more so). Specific (ie. not the theoretical/abstract concept) implementations of query operators can be slow because of generating more computation than is actually needed to produce the result.  Also even the theoretical performance of a query operator depends on the underlying collection, doing a search or filter on a sorted list for instance, it can benefit from performant concrete algorithms that take advantage of order (eg. binary search). But only if the implementation chooses to do so..