This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: Summary of patches


> On Tue, Mar 02, 2004 at 03:16:54PM +0100, Jan Hubicka wrote:
> > > marked and swept without ever using ggc_alloc (which is not suited to
> > > resizable data structures) for them.
> > 
> > I will try to think about this deeper, but it seems to be that we will
> > just end up with two ggc allocators hooked together.  With Richard's
> > ggc_free patch we can now release the memory explicitely, so I am not
> > quite sure what is the most sane approach here.
> 
> I think with ggc_free, ggc_alloc is no worse than malloc here.  
One obvious issue is that we do not ggc_free number of varrays once they
are not used.  I will send patch at least for this.
Other problem is that it interleaves with RTL/trees decreasing locality
but that is what zone collector is supposed to be for.

I did some benchmarking with the patch and I can actaully measure about
2-3% speedup on Gerald's testcase, but it may be all caused by the
explicit ggc_free calls.  I will double check that.

Honza
> 
> 
> r~


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