aboutsummaryrefslogtreecommitdiff
path: root/lib/Basic/IdentifierTable.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-04-25 21:21:38 +0000
committerDouglas Gregor <dgregor@apple.com>2009-04-25 21:21:38 +0000
commit17e1c5eba505d0c99e35aa6143631653db668fb6 (patch)
tree16353db3de42d3d9d9686b8729bfca9bb89de6e5 /lib/Basic/IdentifierTable.cpp
parentd6595a40fe12e3d5ffe5ce48987b379d547439a4 (diff)
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
Diffstat (limited to 'lib/Basic/IdentifierTable.cpp')
0 files changed, 0 insertions, 0 deletions