]> granicus.if.org Git - clang/commit
Optimize the loading of an identifier from a PCH file when given the
authorDouglas Gregor <dgregor@apple.com>
Sat, 25 Apr 2009 21:21:38 +0000 (21:21 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 25 Apr 2009 21:21:38 +0000 (21:21 +0000)
commit17e1c5eba505d0c99e35aa6143631653db668fb6
tree16353db3de42d3d9d9686b8729bfca9bb89de6e5
parentd6595a40fe12e3d5ffe5ce48987b379d547439a4
Optimize the loading of an identifier from a PCH file when given the
identifier's ID. In this case, we know where the identifier's entry is
located in the hash table (it starts right before the identifier
string itself), so skip the hash table lookup and read the entry
directly. The performance improvement here is, gain, hard to quantify,
but it's the right thing to do.

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