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:

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 <> 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
  + corrects a duplication in the documentation

Where to get it?

-- Roberto