d1e00b6f13
In the scanner's VFS, we cache all files by default and only avoid caching stat failures for certain files. This tanks the performance of scanning with pre-populated module cache. When there is a stale PCM file, it gets cached by the scanner at the start and the rebuilt version never makes it through the VFS again. The TU invocation that rebuilds the PCM only sees the copy in its InMemoryModuleCache, which is invisible to other invocations. This means the PCM gets rebuilt for every TU given to the scanner. This patch fixes the situation by flipping the default, only caching files that are known to be important, and letting everything else fall through to the underlying VFS. rdar://106376153 Reviewed By: Bigcheese Differential Revision: https://reviews.llvm.org/D146328 |
||
---|---|---|
.. | ||
ASTDiff | ||
Core | ||
DependencyScanning | ||
DumpTool | ||
Inclusions | ||
Refactoring | ||
Syntax | ||
Transformer | ||
AllTUsExecution.cpp | ||
ArgumentsAdjusters.cpp | ||
CMakeLists.txt | ||
CommonOptionsParser.cpp | ||
CompilationDatabase.cpp | ||
EmptyNodeIntrospection.inc.in | ||
Execution.cpp | ||
ExpandResponseFilesCompilationDatabase.cpp | ||
FileMatchTrie.cpp | ||
FixIt.cpp | ||
GuessTargetAndModeCompilationDatabase.cpp | ||
InterpolatingCompilationDatabase.cpp | ||
JSONCompilationDatabase.cpp | ||
NodeIntrospection.cpp | ||
Refactoring.cpp | ||
RefactoringCallbacks.cpp | ||
StandaloneExecution.cpp | ||
Tooling.cpp |