Tune initial heap size
authorAndy Wingo <wingo@pobox.com>
Thu, 28 Nov 2013 10:32:08 +0000 (11:32 +0100)
committerAndy Wingo <wingo@pobox.com>
Thu, 28 Nov 2013 10:32:08 +0000 (11:32 +0100)
commit064d24093b752999979b4a71d19f60489c5dfc6a
treea8e3f7b76dbe3816c29e433f2a03cec26d48111e
parenta0a4d859c4101e41d669a62142a6ce1fb55d3a64
Tune initial heap size

* libguile/fluids.c (new_fluid): Don't run an explicit GC for the first
  fluid.

* libguile/gc.c (DEFAULT_INITIAL_HEAP_SIZE, scm_storage_prehistory):
  Enlarge from 32 kB to 512 or 1024 kB, depending on word size.  Reduces
  startup time by 10 or 15% by avoiding excessive
  GC.

* libguile/private-gc.h: Remove SCM_DEFAULT_INIT_HEAP_SIZE_2 definition
  here.
libguile/fluids.c
libguile/gc.c
libguile/private-gc.h