This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Collecting more frequently


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]