If it's a contest of Marpa vs. regular expressions, I'm only surprised that
it is just 3x. If your grammar parses using regular expressions, regular
expressions will always be much faster.

A while ago I wrote a post with a section on "When NOT to use Marpa".
There were 4 cases and grammars that are regular expressions were the 1st
one:
http://jeffreykegler.github.io/Ocean-of-Awareness-blog/individual/2015/08/fast_handy.html

I assumed when I saw your grammar that it was part of a larger one, one
that was not convenient to parse as a regular expression.  An advantage of
having done it with Marpa is that you can extend the grammar much more
easily -- but if that's not going to be the case in your application, yes,
Marpa may well not be the best choice for you.

On Mon, Feb 18, 2019 at 3:33 AM <les...@dubiel.pl> wrote:

>
>
> I have tested my current perl5 programs against newly created in Marpa.
> I'm not using XS.
> Marpa program runs 3x slower than my old program. In my opinion it is
> quite good efficiency.
>
> Here is the log:
>
> https://github.com/leszekdubiel/marpa-vs-parsing-by-hand
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "marpa parser" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to marpa-parser+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"marpa parser" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to marpa-parser+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to