PATCH: speed up rtti decl emission
Mark Mitchell
mark@codesourcery.com
Sun Mar 16 21:20:00 GMT 2003
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@codesourcery.com
More information about the Gcc-patches
mailing list