[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: the most optimal string "trim" implementation
- From: David Manura <dm.lua@...>
- Date: Wed, 30 Dec 2009 00:07:53 -0500
On Mon, Dec 28, 2009 at 10:39 PM, Sean Conner wrote:
> I guess the following would be considered "cheating" then?
> [C implementation follows]
The C implementation turns out to be a couple times faster than all
other implementations [1].
I'm not sure if the LuaJIT numbers will change, as it is said,
"Support for other areas (e.g. string functions) is still a bit weak."
[2]
[1] http://lua-users.org/wiki/StringTrim
[2] http://lua-users.org/lists/lua-l/2009-11/msg00029.html