caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Stdlib's hashtbl never sized down?
@ 2012-04-24  6:52 rixed
  2012-04-24  8:20 ` Christoph Bauer
  0 siblings, 1 reply; 2+ messages in thread
From: rixed @ 2012-04-24  6:52 UTC (permalink / raw)
  To: caml-list

I just discovered that stdlib's hash table size is doubled when the
average list length reach some threshold, but are never sized down. So
if one uses a long lived hashtable which number of elements vary with
time the underlying array will only grow.  I suppose it's on purpose but
need help to find a reason for this.


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

end of thread, other threads:[~2012-04-24  8:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-24  6:52 [Caml-list] Stdlib's hashtbl never sized down? rixed
2012-04-24  8:20 ` Christoph Bauer

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).