[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Text processing in Lua...
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 13 Dec 2010 17:35:04 -0200
> 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