]> granicus.if.org Git - clang/commit
PCH optimization for the identifier table, where we separate
authorDouglas Gregor <dgregor@apple.com>
Sat, 25 Apr 2009 21:04:17 +0000 (21:04 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 25 Apr 2009 21:04:17 +0000 (21:04 +0000)
commitd6595a40fe12e3d5ffe5ce48987b379d547439a4
treee2adb77592d2ddee72f3b478e9cf380fa7a2a44a
parent5f8e3302242cf94de2f8e46d10167f57fcf747c3
PCH optimization for the identifier table, where we separate
"interesting" identifiers (e.g., those where the IdentifierInfo has
some useful information) from "uninteresting" identifiers (where the
IdentifierInfo is just a name). This makes the hash table smaller (so
searching in it should be faster) and, when loading "uninteresting"
identifiers, we skip the lookup in the hash table.

PCH file size is slightly smaller than before (since we don't emit the
contents of the uninteresting IdentifierInfo structures). The
Cocoa.h-prefixed "Hello, World" doesn't show any speedup, although
we're getting to the point where system noise is a bit issue.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70075 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/PCHReader.cpp
lib/Frontend/PCHWriter.cpp