[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Re: table.join -> string.split?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 19 Nov 2002 15:50:08 +0000
> My question should have read more like "if a join is there,
> then why isn't a split?".
Because it is quite easy to write a join in C, and it is much more
efficient than its equivalent in Lua. A split in C is more difficult
(among other things because of its endless variations), and would offer
no significant performance gain over its equivalent in Lua.