Re:Sum of 1 to 1000000000 in different programming languages
by jdtw on Monday August 05, 2013 @03:08PM
(#6162194)
That's an old(ish) version. They've probably done a bit of optimization. For example, with the (speed 3) optimization, and letting the compiler know that sum is a fixnum, I can get it down to <2 billion cycles: See my answer here: http://stackoverflow.com/a/18065714/2423072
[ Parent
| on HN ]
There are no comments on this comment yet.