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 mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to