Version française
Home     About     Download     Resources     Contact us    
Browse thread
features of PCRE-OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: John Max Skaller <skaller@o...>
Subject: Re: features of PCRE-OCaml
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