[clang] [clang][deps] Cache `VFS::getRealPath()` (PR #68645)
Jan Svoboda via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 9 16:54:57 PDT 2023
================
@@ -168,6 +170,12 @@ class DependencyScanningFilesystemSharedCache {
/// The backing storage for cached contents.
llvm::SpecificBumpPtrAllocator<CachedFileContents> ContentsStorage;
+ /// Map from filenames to cached real paths.
+ llvm::StringMap<const CachedRealPath *> RealPathsByFilename;
----------------
jansvoboda11 wrote:
I guess this could be inlined into something like
```c++
llvm::StringMap<std::pair<const CachedFileSystemEntry *, const CachedRealPath *>> InfoByFilename
```
Any preferences?
https://github.com/llvm/llvm-project/pull/68645
More information about the cfe-commits
mailing list