* scm_register_collectable_memory() ?
@ 2002-08-03 18:20 Han-Wen
0 siblings, 0 replies; only message in thread
From: Han-Wen @ 2002-08-03 18:20 UTC (permalink / raw)
Hi,
Question: why does GUILE do a GC when a lot of memory malloced memory
is used? I understand that doing GC frees up some of that memory, but
every piece of collectable malloc memory is already connected with a
cell, and we do GC for those regularly (i.e. when we run out of
cells.)
For example, the doc snarfer, which is quite heavy with malloced stuff
(strings), does many times more often malloc triggered GCs, and most
the of the yields are low. Why don't we measure yields, and adjust the
triggers, similar to how cells are done?
Precise numbers:
58 gcs, of which 47 are induced by scm_register_collectable_memory().
Average yield (i.e (mallocedbefore - mallocedafter) / mallocedbefore )
of 14 %. This is for the snarf-check-and-output-texi script, run on
the GUILE sources.
--
Han-Wen Nienhuys | hanwen@cs.uu.nl | http://www.cs.uu.nl/~hanwen
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-08-03 18:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-03 18:20 scm_register_collectable_memory() ? Han-Wen
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 read-only IMAP folder(s) and NNTP newsgroup(s).