This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Speed up garbage collector
- To: Ira Ruben <ira at apple dot com>
- Subject: Re: Speed up garbage collector
- From: "Zack Weinberg" <zackw at stanford dot edu>
- Date: Tue, 26 Jun 2001 15:12:36 -0700
- Cc: gcc-patches at gcc dot gnu dot org
On Tue, Jun 26, 2001 at 02:11:40PM -0700, Ira Ruben wrote:
> The 3.x garbage collector, according to gprof measurements, can be
> changed to have a less of an impact by changing GGC_MIN_EXPAND_FOR_GC
> and GGC_MIN_LAST_ALLOCATED, i.e., by changing when collection takes
> place and how much to accumulate. I've increased these factors (and
> also made some unsigned shorts into unsighed longs) to reduce the
> impact of ggc (albeit at the cost of more memory usage). Below is
> the patch.
These numbers ought to be made runtime tunable via the --param
mechanism. I'd also like GGC_ALWAYS_COLLECT to be a runtime toggle,
because there is a class of bugs that gets totally masked by the
normal settings, but the compiler is so slow in that mode that it's
not practical to rebuild it like that every time you need it. (A
GGC_ALWAYS_COLLECT build takes upwards of 36 hours to complete on my
machine.)
--
zw I was saving quarters, but now I'm going home tomorrow, so I guess
I have more money than I have.
-- Nathaniel Smith