caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Specialized dictionaries
@ 2001-11-05 10:06 Marcin 'Qrczak' Kowalczyk
  2001-11-05 10:19 ` Xavier Leroy
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Marcin 'Qrczak' Kowalczyk @ 2001-11-05 10:06 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2001-11-06 11:46 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-05 10:06 [Caml-list] Specialized dictionaries Marcin 'Qrczak' Kowalczyk
2001-11-05 10:19 ` Xavier Leroy
2001-11-05 10:32 ` Jean-Christophe Filliatre
2001-11-05 17:36   ` Florian Hars
2001-11-05 17:54     ` Sven
     [not found]   ` <9s6j7c$i6r$1@qrnik.zagroda>
2001-11-05 18:18     ` Marcin 'Qrczak' Kowalczyk
2001-11-05 18:24       ` Nicolas George
     [not found]       ` <9s6m53$k16$1@qrnik.zagroda>
2001-11-05 20:56         ` Marcin 'Qrczak' Kowalczyk
2001-11-06  6:53           ` Sven
2001-11-06  0:35         ` Marcin 'Qrczak' Kowalczyk
     [not found] ` <9s5pe7$5k6$1@qrnik.zagroda>
2001-11-05 11:49   ` Marcin 'Qrczak' Kowalczyk
2001-11-05 23:40 ` Julian Assange

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).