Re: Re[2]: table.join -> string.split?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Re[2]: table.join -> string.split?
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2002年11月19日 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.
-- Roberto