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: [RFC] cleanup frontend GC memory (decls and types)


>>>>> "Michael" == Michael Matz <matz@suse.de> writes:

Michael> I'm not 100% sure what to make of this and if it's even
Michael> worthwhile to continue on this path, so I'm asking for
Michael> comments.  Anyway, what I wanted to look at is to reduce the
Michael> memory overhead of the (C++) frontend, after it is basically
Michael> done with it's work, i.e. at the end of the IPA passes.

I'm curious to know whether and how this affects build times.

Michael> Then I iterate over all things (identifiers, types and decls)
Michael> and zero out several fields

FWIW I have a patch to let the GC reclaim identifiers.  In my patch,
after parsing the identifier table is turned into a weak hash.  This
may eliminate the need to walk the identifier table.

I'll try to submit this soon.

Tom


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