Stuart Leeks - Application Development Consultant

Stuart Leeks - Application Development Consultant

The first of these tests is a simple count over a list of customers. The second adds in an allocation for comparison with the other tests. The third test adds a single let statement, and the final test goes all out with let statements to exaggerate the effect. I’ve deliberately kept the tests simply (e.g. avoided group by/where statements) to maximise the effect of the let statement in each case. I ran each test 10,000 times and got the following results:

Read More:

http://blogs.msdn.com/stuartleeks/archive/2008/05/29/using-let-in-linq-to-objects-part-2.aspx 

Thanks

Leave a Reply

You must be logged in to post a comment.