From: John Max Skaller <skaller@ozemail.com.au>
To: Markus Mottl <mottl@miss.wu-wien.ac.at>
Cc: OCAML <caml-list@inria.fr>
Subject: Re: features of PCRE-OCaml
Date: Fri, 08 Dec 2000 03:01:29 +1100 [thread overview]
Message-ID: <3A2FB459.416E1E05@ozemail.com.au> (raw)
In-Reply-To: <20001206015139.D31140@miss.wu-wien.ac.at>
Markus Mottl wrote:
> Somebody reported to me that he had tested OCaml with PCRE-OCaml
> against PERL and Python with several 100MB data that had to be
> matched/manipulated. Trusting his claims, the overall speed of the
> OCaml-version (native code) was 15 times faster than Perl and 45
> times faster than Python, which is probably also due to the high
> quality of the OCaml-compiler.
Funny. Python 1.5.2 used the _same_ C library by Philip Hazel. :-)
Given the fact this library builds DFA's instead of NFA's, Python
ought to be faster than Perl. :-)
Note also, Python 2.0 uses a modified library which does something
PCRE-OCaml cannot: it works with Unicode characters (supposedly).
I do have a question though: is it possible to build a Str compatible
interface to PCRE-Ocaml, and then make them both a standard part
of the distribution? [The idea of a functional language using
non-reentrant libraries seems slightly absurd to me :-]
--
John (Max) Skaller, mailto:skaller@maxtal.com.au
10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850
checkout Vyper http://Vyper.sourceforge.net
download Interscript http://Interscript.sourceforge.net
next prev parent reply other threads:[~2000-12-08 9:02 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-06 0:51 Markus Mottl
2000-12-07 16:01 ` John Max Skaller [this message]
2000-12-07 16:32 ` Markus Mottl
2000-12-07 17:08 ` John Max Skaller
2000-12-08 0:03 ` Markus Mottl
2000-12-08 17:52 ` John Max Skaller
2000-12-08 9:19 ` Alain Frisch
2000-12-08 18:11 ` John Max Skaller
2000-12-08 19:48 ` Alain Frisch
2000-12-09 17:07 ` John Max Skaller
2000-12-14 17:35 ` unicode support Nickolay Semyonov
2000-12-07 20:17 ` features of PCRE-OCaml Miles Egan
2000-12-08 12:30 ` Gerd Stolpmann
2000-12-08 15:05 ` Markus Mottl
2000-12-08 15:40 ` Gerd Stolpmann
2000-12-09 3:03 ` Markus Mottl
2000-12-09 13:12 ` Gerd Stolpmann
2000-12-10 0:32 ` 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=3A2FB459.416E1E05@ozemail.com.au \
--to=skaller@ozemail.com.au \
--cc=caml-list@inria.fr \
--cc=mottl@miss.wu-wien.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;
as well as URLs for NNTP newsgroup(s).