[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: My Benchmark (was: looking for a better idiom)
- From: Vaughan McAlley <vaughan@...>
- Date: Thu, 9 Sep 2010 21:47:24 +1000
2010/9/9 "J.Jørgen von Bargen" <jjvb.primus@gmx.de>:
> Just to advert you to this, I've now published my script at
> http://lua-users.org/wiki/BenchmarkModule
> Comments are welcome.
> Regards
-- extreme slow
TableConcat=function()
local t,a,s='A','#',5
local n=""
for i=1,1000 do
n=table.concat{"\symbol{circled",s,"}=",t,a,i}
end
end,
This code creates 1000 identical tables. Maybe defining it once at the
beginning of the function would be closer the way we normally use
table.concat- where table creation is a trivial part of building a
long string.
Vaughan