From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA07656 for caml-red; Fri, 8 Dec 2000 10:02:00 +0100 (MET) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA00600 for ; Thu, 7 Dec 2000 17:02:47 +0100 (MET) Received: from localhost.localdomain (cartman118.zip.com.au [61.8.20.246]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id eB7G2g507981 for ; Thu, 7 Dec 2000 17:02:44 +0100 (MET) Received: from ozemail.com.au (IDENT:root@localhost [127.0.0.1]) by localhost.localdomain (8.9.3/8.8.7) with ESMTP id DAA24263; Fri, 8 Dec 2000 03:01:29 +1100 Message-ID: <3A2FB459.416E1E05@ozemail.com.au> Date: Fri, 08 Dec 2000 03:01:29 +1100 From: John Max Skaller X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.12-20 i686) X-Accept-Language: en MIME-Version: 1.0 To: Markus Mottl CC: OCAML Subject: Re: features of PCRE-OCaml References: <20001206015139.D31140@miss.wu-wien.ac.at> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: weis@pauillac.inria.fr 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