lua-users home
lua-l archive

Re: table.concat or unpack

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


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
> 
>

AltStyle によって変換されたページ (->オリジナル) /