[cfe-commits] r65103 - /cfe/trunk/lib/AST/DeclBase.cpp

Chris Lattner sabre at nondot.org
Thu Feb 19 21:20:05 PST 2009


On Feb 19, 2009, at 6:02 PM, steve naroff wrote:

>
> On Feb 19, 2009, at 8:44 PM, Chris Lattner wrote:
>
>> Author: lattner
>> Date: Thu Feb 19 19:44:05 2009
>> New Revision: 65103
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=65103&view=rev
>> Log:
>> optimize the 'StoredDeclsMap' for the common case where there is
>> exactly one decl with a specific name in a specific context.  This
>> avoids a bunch of malloc traffic and shrinks StoredDeclsMap to hold
>> one pointer instead of 3 words (for a std::vector).
>>
>> This speeds up -fsyntax-only on cocoa.h with PTH by ~7.3%.
>>
>
> Wow. I'm impressed:-)

the credit goes to dtrace, it rocks.

-Chris



More information about the cfe-commits mailing list