aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2024-04-12 10:34:42 -0700
committerGitHub <noreply@github.com>2024-04-12 10:34:42 -0700
commita11a4324bb27c01e7a005e1a7f49fb8284098e8c (patch)
tree2276e865f0b136efc64e0c326668113f349e83be /llvm/unittests/Support/VirtualFileSystemTest.cpp
parentc11976f525f3b9b9dc6080f0b23d2ef1ec5fe8fd (diff)
downloadllvm-a11a4324bb27c01e7a005e1a7f49fb8284098e8c.zip
llvm-a11a4324bb27c01e7a005e1a7f49fb8284098e8c.tar.gz
llvm-a11a4324bb27c01e7a005e1a7f49fb8284098e8c.tar.bz2
[clang][deps] Cache `VFS::getRealPath()` (#68645)
This PR starts caching calls to `DependencyScanningWorkerFilesystem::getRealPath()` that we use whenever we canonicalize module map path. In the case of the real VFS, this functions performs an expensive syscall that we'd like to do as rarely as possible. This PR keeps the real path out of `CachedFileSystemEntry`, since that's **immutable**; populating the real path on creation of this data structure (every stat/open) would be expensive.
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions