[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua Performance, IO / Regexp
- From: gary ng <garyng2000@...>
- Date: Fri, 19 Oct 2007 00:18:11 -0700 (PDT)
--- Hans Hagen <pragma@wxs.nl> wrote:
> Mariano Kamp wrote:
>
> > Any ideas and hints what I can do to make things
> faster and/or prettier?
>
> - lpeg: much faster than string match
> - no metatable: less code and less function calls
> (not faster here)
> - binary read: no need to parse line endings in io
>
> - the lpeg can probably be made faster (no time to
> look into it now)
>
I can confirm that lpeg is much faster than hand coded
string match.
However, my experience is that lua's sort() function
is noticeably slower than python's. I am not sure how
it compares with ruby or perl.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com