lua-users home
lua-l archive

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


Then it would be nice to add that detail! PIL goes into detail about the performance penalty of doing great numbers of concatenations.

Thanks,

Michael

----- Original Message ----- From: "Luiz Henrique de Figueiredo" <lhf@tecgraf.puc-rio.br>
To: "Lua list" <lua@bazar2.conectiva.com.br>
Sent: Wednesday, August 19, 2009 3:15 PM
Subject: Re: Simple way to create a big string of blanks?


I actually didn't try using string.rep() because I veered away when I read its documentation that said it "concatenates". So it did not sound like the
tool to use.

What is missing in the docs is the implementation detail that lua_concat
is very efficient.