|
|
||
|
But mine is still 25% faster, and can be improved even more by memoising:
rlake@freeb:~$ time lua511 -l 'Memoise' -e 'local rep = Memoise(function(n) return ("%d"):rep(n) end); for i = 1, 1e5 do local t = {1,2,3,4,5,6,7}; local a = rep[#t]:format(unpack(t)) end'
Just curious, I learned so much from this list!
-- Philippe Lhoste -- (near) Paris -- France -- http://Phi.Lho.free.fr -- -- -- -- -- -- -- -- -- -- -- -- -- --