[cfe-commits] r49570 - in /cfe/trunk/lib/Sema: IdentifierResolver.cpp IdentifierResolver.h
clattner at apple.com
Sat Apr 12 17:09:30 PDT 2008
On Apr 12, 2008, at 5:52 AM, Argiris Kirtzidis wrote:
>>> + IdDeclInfo *IDI = &IDIVecs.back()[CurIndex];
>> If you do that, this can just be push_back() + back().
> I had tested both ways and found the 'resize and initialize all at
> once' to be a tiny bit more efficient. This was on msvc though. I
> attached the 'reserve' way in case you'd like to test it yourself.
Ok, sounds good, thanks for measuring!
More information about the cfe-commits