Re:Yet Another Language Speed Test – Counting Primes
by whoopdedo on Saturday July 04, 2015 @04:49AM
(#9829667)
Lua is global by default. Declare all the variables as local and you'll see significant improvement. Also, there is a boolean type so you can use true and false directly instead of comparing numbers.
[ Parent
| on HN ]