[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua Performance, IO / Regexp
- From: gary ng <garyng2000@...>
- Date: Fri, 19 Oct 2007 00:18:11 -0700 (PDT)
--- Hans Hagen <firstname.lastname@example.org> 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
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