lua-users home
lua-l archive

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

Tim Hill wrote:
>  It already does. In fact it uses a rather clean algorithm to perform a pretty optimal number of allocations/copies during the concatenation. See PiL for more information.

IIRC starting from Lua 5.2 luaL_Buffer(used internally by table.concat) is a simple buffer, doubling in size when it overflows, and not the "Tower of Hanoi" described in PiL.