From: Jean-Christophe Filliatre <Jean-Christophe.Filliatre@lri.fr>
To: Markus Mottl <markus@mail4.ai.univie.ac.at>
Cc: Berke Durak <berke@altern.org>, caml-list@inria.fr
Subject: Re: [Caml-list] String.unescaped and some other little pitiful laments
Date: Wed, 11 Jul 2001 08:44:11 +0200 (MEST) [thread overview]
Message-ID: <15179.62907.650110.606283@pc803> (raw)
In-Reply-To: <20010710205534.B29850@fichte.ai.univie.ac.at>
Markus Mottl writes:
> If somebody wants to give it a try, the SML-entry in the language shootout
> implements a regexp-library with NFAs and DFAs. I haven't given it a
> closer look yet, but performance looks excellent:
>
> http://www.bagley.org/~doug/shootout/bench/regexmatch/regexmatch.mlton
I tried Claude Marché's Regexp library instead of Pcre on that
particular example and there is a speedup of 5 % approximatively.
Note that the Regexp library compiles regular expressions into
deterministic finite automata using a very different algorithm than
the SML entry, from this article:
G. Berry and R. Sethi
From Regular Expressions to Deterministic Automata
Theoretical Computer Science 48 (1986) 117-126
This is a very nice and concise algorithm and I encourage anybody
interested in regexp and automata to have a look at it (again, the url
for the code is http://www.lri.fr/~marche/tmp/regexp-0.1.tar.gz)
--
Jean-Christophe Filliatre
mailto:Jean-Christophe.Filliatre@lri.fr
http://www.lri.fr/~filliatr
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
next prev parent reply other threads:[~2001-07-11 6:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-10 18:07 Berke Durak
2001-07-10 18:55 ` Markus Mottl
2001-07-11 6:44 ` Jean-Christophe Filliatre [this message]
2001-07-11 6:37 ` Jean-Christophe Filliatre
2001-07-11 7:29 ` Claude Marche
2001-07-11 18:03 ` Jerome Vouillon
2001-07-11 19:30 ` Xavier Leroy
2001-07-11 20:33 ` 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=15179.62907.650110.606283@pc803 \
--to=jean-christophe.filliatre@lri.fr \
--cc=berke@altern.org \
--cc=caml-list@inria.fr \
--cc=markus@mail4.ai.univie.ac.at \
/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