Re: table.concat or unpack
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: table.concat or unpack
- From: Ben Sunshine-Hill <sneftel@...>
- Date: 2004年7月16日 09:45:50 -0700
The latter is almost certainly faster. String concatenation tends to
be slow (less so since it's done on the C side, tho) and there's no
real need to do it here.
As for "better".... *shrug*
On 2004年7月16日 18:17:53 +0200 (BST), Markus Huber <pulse@elmulab.de> wrote:
> Wich version is better?
>
> io.write(table.concat(arg))
>
> or
>
> io.write(unpack(arg))
>
> --
> Markus
>
>