This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Collecting more frequently
- To: amylaar at cygnus dot co dot uk
- Subject: Re: Collecting more frequently
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Mon, 20 Mar 2000 23:02:31 +0100
- CC: mark at codesourcery dot com, amylaar at pasanda dot cygnus dot co dot uk, mrs at windriver dot com, gcc at gcc dot gnu dot org
- References: <200003201527.PAA27960@phal.cygnus.co.uk>
> Hmm, so does this heuristic take too much time?
I would not think so. In a test case of mine (actually, of Gerald),
there were 7927 calls to "ggc_collect", of which 26 resulted in actual
collection. However, this relates to 39645517 calls to "ggc_set_mark",
6052924 calls to "fixup_var_refs_1", and 17646284 calls to "contains"
in the same test case. It is certainly possible to speed-up the
threshold test, but it would not save too much.
Regards,
Martin