lua-users home
lua-l archive

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


On 02/01/14 08:57, Thijs Schreijer wrote:
> I'm writing some code that might potentially handle very large
> strings. To write this properly/efficient I have a question on string
> immutability.

You might want to look at the 'rope' patten.

http://en.wikipedia.org/wiki/Rope_%28computer_science%29
http://lua-users.org/wiki/LuaRopes

Scott