[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] #:size argument to make-hash-table
From: |
Jeronimo Pellegrini |
Subject: |
[Chicken-users] #:size argument to make-hash-table |
Date: |
Fri, 14 May 2010 17:08:35 -0300 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Hi,
I'm not sure I understand how the #:size argument to make-hash-table
works.
#;18> (define a (make-hash-table #:size 100000 #:min-load 0.2 ))
#;19> (vector-length (##sys#slot a 1)) ;; interal vector
307
#;20> (##sys#slot a 5)
0.2
#;21> (hash-table-min-load a)
So, it seems that I could set the min-load of the hashtable, but
setting the size doesn't seem to do anyhing, as it will always
be 307 (the smallest size that Chicken uses for the internal vector).
Is the internal vector size not immediately created with some value in
hash-table-prime-lengths [0] that is close to the expected size? Or
is the #:size parameter used in some other way?
Thanks
J.
[0] In srfi-69.scm
- [Chicken-users] #:size argument to make-hash-table,
Jeronimo Pellegrini <=