commit | 67762a35dca6202d2272db02d0b8740728e3aa8f | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Fri Feb 20 01:44:05 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Fri Feb 20 01:44:05 2009 +0000 |
tree | 49f72f6cf72b3a6909e35d33a047ab985eca12b5 | |
parent | 15423b066d695b8713dd70efa7b37e95290459e5 [diff] |
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%. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65103 91177308-0d34-0410-b5e6-96231b3b80d8