lua-users home
lua-l archive

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


On Wed, Apr 13, 2011 at 3:39 PM, Francesco Abbate
<francesco.bbt@gmail.com> wrote:
> I believe that the lua string buffer was created exactly to treat
> efficiently this kind of cases and avoid the string concatenation

Well, I think by now we are all eager: where are the numbers?

Time for another microbenchmark!

BTW, how about this?

table.insert(args,1,'[')
table.insert(args,']')
res = table.concat(args,',')

steve d.