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 TAA18293; Wed, 26 Feb 2003 19:54:36 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA18439 for ; Wed, 26 Feb 2003 19:54:35 +0100 (MET) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from maild.telia.com (maild.telia.com [194.22.190.101]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h1QIsYH03407 for ; Wed, 26 Feb 2003 19:54:35 +0100 (MET) Received: from d1o849.telia.com (d1o849.telia.com [213.66.248.241]) by maild.telia.com (8.12.5/8.12.5) with ESMTP id h1QIsUPZ016660; Wed, 26 Feb 2003 19:54:31 +0100 (CET) X-Original-Recipient: caml-list@inria.fr Received: from gateway (h199n1fls34o849.telia.com [213.67.121.199]) by d1o849.telia.com (8.10.2/8.10.1) with ESMTP id h1QIsRs01106; Wed, 26 Feb 2003 19:54:27 +0100 (CET) From: "Mattias Waldau" To: "'David Monniaux'" , "'Liste CAML'" Subject: RE: [Caml-list] troubling results from profiling: compare_val Date: Wed, 26 Feb 2003 19:54:29 +0100 Message-ID: <006f01c2ddc8$7faff1b0$0a00a8c0@gateway> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk If you know that you have numbers, in many cases you can use - (minus) as comparation operator. That speeds things up. > Our code uses some maps on strings and many comparisons on int64's. > /mattias ------------------- 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