Optimisations in LINQ to Objects
(Edited on February 11th, 2010 to take account of a few mistakes and changes in the .NET 4.0 release candidate.) I’ve just been fiddling with the first appendix of C# in Depth, which covers the standard query operators in LINQ, and describes a few details of the LINQ to Objects implementations. As well as specifying which operators stream and which buffer their results, and immediate vs deferred execution, I’ve where LINQ optimises for different collection types – or where it doesn’t, but could. I’m not talking about optimisations which require knowledge of the projection being applied or an overall picture … Continue reading Optimisations in LINQ to Objects