This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: speed up rtti decl emission
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Matt Austern <austern at apple dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 16 Mar 2003 13:15:07 -0800
- Subject: Re: PATCH: speed up rtti decl emission
- References: <4F5475D6-564B-11D7-986F-000393B2ABA2@apple.com>
On Fri, 2003-03-14 at 10:32, Matt Austern wrote:
> This patch changes emission of tinfo decls by creating a special list
> for them, so that finish_file doesn't have to loop through every decl
> in the whole program checking to see if it's a tinfo decl. On Apple's
> usual test case (-O0 -g build of the Finder, using PCH), it speed up
> the build by a bit over 1%. Not earthshaking, but every 1% helps!
Indeed, and the concept here is good.
One question: why not use two varrays (one for old tinfos, one for new
ones), rather than the "push-at-the-end, then memcpy" idea?
--
Mark Mitchell
CodeSourcery, LLC
mark at codesourcery dot com