lua-users home
lua-l archive

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


> Lua optimises expressions of that form into a single concatenate
> operation.

As well as
for k = 1, 100 do s = s...k end
?

Anyway, there are tons of places an internal stringbuffer improves
performance, serial concations is just one example, and as I realize
this experimental feature 5.2.1-work is about  would also been covered
as just one special case of that. So for example reading large String
from a file, it could be stored as "Stringbuffer" until first used in
a String context (e.g. as key to a table, compared to another string
etc.)