lua-users home
lua-l archive

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


> When concatenating a lot of strings, it is always better to put the
> strings into a table, and then use table.concat() to get the resulting
> string. Take a look at http://luafaq.org/#T1.9

Check out ropes:
	http://en.wikipedia.org/wiki/Rope_(computer_science)
	http://lua-users.org/wiki/LuaRopes

See this thread:
	http://lua-users.org/lists/lua-l/2008-12/msg00055.html

The complete code is at
	http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/5.1/lrope.tar.gz