caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Francois Pottier <Francois.Pottier@inria.fr>
To: Joel Reymont <joelr1@gmail.com>
Cc: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] Size of produced parser: menhir vs ocamlyacc
Date: Fri, 30 Mar 2007 15:31:51 +0200	[thread overview]
Message-ID: <20070330133151.GC6173@yquem.inria.fr> (raw)
In-Reply-To: <51E5CF1F-352C-434A-8C5E-2AA4E52EE520@gmail.com>


Hello,

On Fri, Mar 30, 2007 at 02:14:53PM +0100, Joel Reymont wrote:
> _build/easy_parser.cmo -- ocamlyacc: 98,339,  menhir: 1,542,108
> _build/easy_parser.ml  -- ocamlyacc: 323,729, menhir: 3,550,332
> 
> Compiling a parser with produced by ocamlyacc also takes a fraction  
> of a second vs several seconds with menhir.

This is because we compile automata down to code, whereas ocamlyacc compiles
them down to tables. Ideally, we should provide an option to compile down to
tables instead of code, but we never found time to do so.

> I hope parsers produced by menhir is just as fast as those produce by  
> ocamlyacc during execution!

We did not perform any serious measurements, but we believe that we are
competitive. If you run a comparison, we would be interested in knowing
about the results.

-- 
François Pottier
Francois.Pottier@inria.fr
http://cristal.inria.fr/~fpottier/


  reply	other threads:[~2007-03-30 13:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-30 13:14 Joel Reymont
2007-03-30 13:31 ` Francois Pottier [this message]
2007-03-30 13:45   ` [Caml-list] " Markus Mottl
2007-03-30 13:51     ` Joel Reymont
2007-03-30 14:26       ` Markus Mottl
2007-03-30 14:28         ` Joel Reymont
2007-03-30 15:58           ` skaller
2007-04-01  0:42           ` Markus Mottl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070330133151.GC6173@yquem.inria.fr \
    --to=francois.pottier@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=joelr1@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).