lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I was just trying out lpeg 0.12 with MoonScript, seems to have fixed the segfault that happens in 0.11 which is great. But while testing I noticed a pretty significant performance regression. It seems like lpeg 0.12 is about 2 times slower than 0.10.

Here are the numbers from MoonScript's test suite:

https://gist.github.com/leafo/5461482

Parse times are prefixed with p:, and the total parse time is on the bottom of each set.


On Fri, Apr 12, 2013 at 9:40 AM, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
What is LPeg? LPeg is a new (well, not that new now) pattern-matching
library for Lua, based on Parsing _expression_ Grammars (PEGs).

What is new in version 0.12?
  + no "unsigned short" limit for pattern sizes
  + mathtime captures considered nullable
  + some bugs and compiler warnings fixed


What is new in (rc2)?
  + fixes a bug
      (http://lua-users.org/lists/lua-l/2013-04/msg00366.html)
  + corrects a duplication in the documentation
      (http://lua-users.org/lists/lua-l/2013-04/msg00172.html)

Where to get it?

  http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-0.12-rc2.tar.gz


-- Roberto