Re: LuaJIT string concat
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: LuaJIT string concat
- From: Pierre-Yves Gérardy <pygy79@...>
- Date: 2011年4月13日 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