From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id IAA13974; Tue, 24 Jun 2003 08:53:52 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 IAA13789 for ; Tue, 24 Jun 2003 08:53:50 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h5O6rnP29631; Tue, 24 Jun 2003 08:53:49 +0200 (MET DST) Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id IAA13969; Tue, 24 Jun 2003 08:53:48 +0200 (MET DST) From: Pierre Weis Message-Id: <200306240653.IAA13969@pauillac.inria.fr> Subject: Re: [Caml-list] int/float_of_string In-Reply-To: <20030620.193537.41989199.debian00@tiscali.be> from Christophe TROESTLER at "Jun 20, 103 07:35:37 pm" To: debian00@tiscali.be (Christophe TROESTLER) Date: Tue, 24 Jun 2003 08:53:48 +0200 (MET DST) Cc: caml-list@inria.fr X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam: no; 0.00; pierre:01 weis:01 caml-list:01 scanf:01 ocamlopt:01 runtime:01 cristal:01 int:01 float:02 string:03 compiled:05 indeed:06 compatible:09 normally:10 U5:88 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, [...] > --- > ¹ For what simple minded benchs worth, int_of_string can be as much as > 1000% faster than Scanf. > > ------------------- In order to make Scanf faster, I would be glad to have your ``simple minded benchs'' since my own figures are not compatible with yours: ocamlopt compiled Scanf code is indeed fast (normally <= 2 times the runtime of the ``cc -O2''-compiled C corresponding code). Thanks in advance, Pierre Weis INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://pauillac.inria.fr/~weis/ ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners