Re: [ANN] Lua 5.2.1 (work1) now available
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: [ANN] Lua 5.2.1 (work1) now available
- From: Axel Kittenberger <axkibe@...>
- Date: 2012年3月23日 16:45:20 +0100
> 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.)