This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Suggestion for improving C++ parser memory usage
On Thu, 2004-12-30 at 10:45 -0800, Matt Austern wrote:
> It would be easy to measure how much time is taken by
> cp_parser_implicitly_scoped_statement and the function it calls.
As a reminder the initial patch was about reducing memory usage not time
taken (which is an issue also, all the clever speed optimisations in the
world are useless if you start swapping).
I don't know much about the gcc internals though so I'll let you guys
figure out if it makes sense to apply.
Have you looked at expanding the usage of branch prediction hints? I see
a few in the 3.4 tree but not very many for the size of the codebase. I
don't know how much difference they make, but if you're at the level of
1-2% improvements right now maybe they can help. I was told once by a
guy I trust on the matter that he was able to get a 20% speedup on one
project he worked on by using them!
thanks -mike