diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-04-25 23:30:02 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-04-25 23:30:02 +0000 |
commit | 8c5a760b82e73ed90b560090772db97e2ae27b09 (patch) | |
tree | ef93a4503bf57c6f71ad8a6b8fe55a9532afefd8 /lib/Basic/IdentifierTable.cpp | |
parent | 71238f67c5df13eef19450d66b7a7ab28377192a (diff) |
Lazily load the controlling macros for all of the headers known in the
PCH file. In the Cocoa-prefixed "Hello, World" benchmark, this takes
us from reading 503 identifiers down to 37 and from 470 macros down to
4. It also results in an 8% performance improvement.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70094 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/IdentifierTable.cpp')
-rw-r--r-- | lib/Basic/IdentifierTable.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Basic/IdentifierTable.cpp b/lib/Basic/IdentifierTable.cpp index 344c4eb18d..8b74b20032 100644 --- a/lib/Basic/IdentifierTable.cpp +++ b/lib/Basic/IdentifierTable.cpp @@ -42,6 +42,8 @@ IdentifierInfo::IdentifierInfo() { IdentifierInfoLookup::~IdentifierInfoLookup() {} +ExternalIdentifierLookup::~ExternalIdentifierLookup() {} + IdentifierTable::IdentifierTable(const LangOptions &LangOpts, IdentifierInfoLookup* externalLookup) : HashTable(8192), // Start with space for 8K identifiers. |