This is the mail archive of the
mailing list for the GCC project.
Re: PATCH: minor C++ front end compile speed improvement
- 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 Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 01 Dec 2004 10:12:48 -0800
- Subject: Re: PATCH: minor C++ front end compile speed improvement
- Organization: CodeSourcery, LLC
- References: <16CC8BF2-43C3-11D9-965B-000A95BCF344@apple.com>
Matt Austern wrote:
I'm seeing a bit under 0.5% improvement in QT builds from this. (Again:
close to the limits of accuracy of my measurements, so take that number
with a grain of salt.) We avoid a test and a dereference in
namespace_binding when we're looking things up in the global namespace,
since we know the global namespace can't be an alias.
OK to commit to mainline?
Zack pointed me at this. Yes, this is OK. I'm amazed it helps that
much, but profiling is always amazing. Add a comment, please,
explaining why it is safe to do this. (Not why it's a performance win;
just why it makes sense.)