A peek past lambda
isidore at setgame.com
Sun Aug 21 07:50:14 PDT 2011
> First all the tests are flawed in this benchmark,
> a JIT can easily see that the sum is not used and discards the whole loop.
long Sum(List<int> intList)
long result = 0;
foreach (int i in intList)
result += i;
isn't the sum being returned? I hope it doesn't discard the loop.....
More information about the lambda-dev