diff options
author | Douglas Gregor <dgregor@apple.com> | 2013-01-25 22:25:23 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2013-01-25 22:25:23 +0000 |
commit | d07865b42dcb32154c75134fded51b38cc55a0c4 (patch) | |
tree | 80b256b1e5115d5116ef9a7ad8737ad8bc25474b /lib/Sema/SemaType.cpp | |
parent | 3d115cfd1b9c48155d478b1f2f14dba1b6ba9a91 (diff) |
Optimize ModuleManager::visit() by precomputing the visitation order
and limiting ourselves to two memory allocations. 10% speedup in
-fsyntax-only time for modules.
With this change, we can actually see some performance different from
the global module index, but it's still about 1%.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173512 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaType.cpp')
0 files changed, 0 insertions, 0 deletions