[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaJIT string concat
- From: Pierre-Yves Gérardy <pygy79@...>
- Date: Wed, 13 Apr 2011 16:50:19 +0200
On Wed, Apr 13, 2011 at 16:25, Henning Diedrich <hd2010@eonblast.com> wrote:
> ----------------------------------------------------------------------------o-
> x=[1..100] elements in t[i] = 'abc' .. i
> +: '[' .. table.concat(t) .. ']'
> x: string.format('[%s]', table.concat(t))
> ----------------------------------------------------------------------------o-
The first example has only one global+table lookup for two in the
second. Or perhaps you cached them in locals but did not display it?
-- Pierre-Yves