[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: breaking up long string literals
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 26 Jun 2003 23:49:45 -0300
>Try the following which I think will be much more efficient:
>
>String = table.concat{
> "\000\020\005\123\ ... \233\245\255\123\234\142" ,
> "\000\020\005\123\ ... \233\245\255\123\234\142" ,
> ...
> "\000\020\005\123\ ... \233\245"
>}
It probably won't be more efficient because of the overhead of creating a table.
Multiple string concatenation has been discussed before. It's fast. See
http://lua-users.org/lists/lua-l/2002-10/msg00065.html
and its thread.
--lhf