lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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