summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/InitHeaderSearch.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-04-27 06:38:32 +0000
committerDouglas Gregor <dgregor@apple.com>2009-04-27 06:38:32 +0000
commit258ae54a5dd7b86824db4fe30874e1cf4f29f3e6 (patch)
treecd87fd753752d0102c4974e8baae95443de07082 /clang/lib/Frontend/InitHeaderSearch.cpp
parent1f551824594e14060b18f82bf661fc91f5a16a14 (diff)
downloadbcm5719-llvm-258ae54a5dd7b86824db4fe30874e1cf4f29f3e6.tar.gz
bcm5719-llvm-258ae54a5dd7b86824db4fe30874e1cf4f29f3e6.zip
Load most of the source manager's information lazily from the PCH
file. In particular, only eagerly load source location entries for files and for the predefines buffer. Other buffers and macro-instantiation source location entries are loaded lazily. With the Cocoa-prefixed "Hello, World", we only load 815/26555 source location entities. This halves the amount of user time we spend in this "Hello, World" program with -fsyntax-only (down to .007s). This optimization is part 1 of 2 for the source manager. This eliminates most of the user time in loading a PCH file. We still spend too much time initialize File structures (especially in the calls to stat), so we need to either make the loading of source location entries for files lazy or import the stat cache from the PTH implementation. llvm-svn: 70196
Diffstat (limited to 'clang/lib/Frontend/InitHeaderSearch.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud