lua-users home
lua-l archive

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


>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