summaryrefslogtreecommitdiff
path: root/libguile/srcprop.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2012-02-19 15:19:14 +0100
committerAndy Wingo <wingo@pobox.com>2012-02-19 20:46:14 +0100
commit917b0e72f72944ecc6af48f43604593974b752de (patch)
tree378ca50caa587cb98481dafdf674df2c5cba906a /libguile/srcprop.c
parent3753e22736feb56ad22ec802bbad16e080066789 (diff)
downloadguile-917b0e72f72944ecc6af48f43604593974b752de.tar.gz
tune default hash table sizes
* libguile/modules.c: In my current image, there are 1790 bindings in the root module, which tips over to the next hash vector size, so declare that to prevent rehashing. * libguile/srcprop.c (scm_init_srcprop): Don't preallocate a big source_whash table, as we might not need it (if everything is compiled, for example). * module/ice-9/boot-9.scm (make-module): Don't preall-cate big hash tables for imported bindings. Instead trust that resizing works correctly.
Diffstat (limited to 'libguile/srcprop.c')
-rw-r--r--libguile/srcprop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/srcprop.c b/libguile/srcprop.c
index cc71fd182..dbebf779f 100644
--- a/libguile/srcprop.c
+++ b/libguile/srcprop.c
@@ -347,7 +347,7 @@ scm_init_srcprop ()
scm_tc16_srcprops = scm_make_smob_type ("srcprops", 0);
scm_set_smob_print (scm_tc16_srcprops, srcprops_print);
- scm_source_whash = scm_c_make_weak_table (2047, SCM_WEAK_TABLE_KIND_KEY);
+ scm_source_whash = scm_c_make_weak_table (0, SCM_WEAK_TABLE_KIND_KEY);
scm_c_define ("source-whash", scm_source_whash);
scm_last_alist_filename = scm_cons (SCM_EOL,