lua-users home
lua-l archive

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


Hello Geoff,

On Wed, Apr 20, 2011 at 11:32 PM, Geoff Leyland
<geoff_leyland@fastmail.fm> wrote:

> It looks like most of the time is spent concatenating strings on the lines
> out = out..encode(v)
> and
> return out..'e'
>
> Have you tried making 'out' a table, appending strings to it and then doing a table.concat as you return it?

i tried that as the first thing, and the optimization gain was unnoticeable.

best regards,
Valerio