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 LAA08541; Mon, 5 Nov 2001 11:05:23 +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 LAA10483 for ; Mon, 5 Nov 2001 11:05:22 +0100 (MET) Received: from mail.mimuw.edu.pl (paf87.warszawa.sdi.tpnet.pl [217.96.225.87]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id fA5A5IH26897 for ; Mon, 5 Nov 2001 11:05:18 +0100 (MET) Received: (from news@localhost) by mail.mimuw.edu.pl (PLD/8.9.3) id LAA05244 for caml-list@inria.fr; Mon, 5 Nov 2001 11:06:45 +0100 X-Authentication-Warning: qrnik.zagroda: news set sender to Marcin 'Qrczak' Kowalczyk using -f From: "Marcin 'Qrczak' Kowalczyk" Subject: [Caml-list] Specialized dictionaries Date: Mon, 5 Nov 2001 10:06:42 +0000 (UTC) Organization: Klub Nieszkodliwych =?iso-8859-2?Q?Manjak=F3w?= Message-ID: X-Trace: qrnik.zagroda 1004954802 4440 192.168.0.1 (5 Nov 2001 10:06:42 GMT) X-Complaints-To: abuse@localhost NNTP-Posting-Date: Mon, 5 Nov 2001 10:06:42 +0000 (UTC) User-Agent: slrn/0.9.7.2 (Linux) To: caml-list@inria.fr Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I need dictionaries indexed by ints which must be very fast. I'm afraid that there is an overhead in using Hashtbl.t such that the generic hash function must recognize that the value is immediate instead of using it as a hash directly. Is it worth to do something with it? What to do? I could copy the first half of hashtbl.ml and replace all occurrences of the function hash by land'ing with 0x3FFFFFFF (so the value is nonnegative and mod gives nonnegative results). Any better idea? -- __("< Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/ \__/ ^^ QRCZAK ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr