emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Re: Make peg.el a built-in library?


From: Eduardo Ochs
Subject: Re: [PATCH] Re: Make peg.el a built-in library?
Date: Sun, 5 Feb 2023 13:19:10 -0300

On Sun, 5 Feb 2023 at 12:44, Ihor Radchenko <yantar92@posteo.net> wrote:
>
> Eduardo Ochs <eduardoochs@gmail.com> writes:
>
> >> > AFAIR not all Emacs regexp features work in PEGs - backrefs for example.
> >> > Or match data handling.
> >>
> >> Sure. But if we make Emacs regexp a valid PEG construct, they will work.
> >> It is the whole point.
> >
> > I played a bit with peg.el some time ago - it is very elegant and it's
> > very easy to inspect how it does things, but it is much slower than
> > Lua's LPEG...
>
> What do you mean by slower?

I wrote a simple peg.el parser and it took two seconds to parse an
input that has just 2KB. The lpeg parser that I use to htmlize some of
my files take about 0.5s to parse a file with 3MB and to return the
htmlized version.
  [[]], E.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]