This is an archive of the discontinued LLVM Phabricator instance.

Cache the value for absolute path in FileSpec.
ClosedPublic

Authored by clayborg on Jul 22 2022, 1:29 PM.

Details

Summary

Checking if a path is absolute can be expensive and currently the result is not cached in the FileSpec object. This patch adds caching and also code to clear the cache if the file is modified.

Diff Detail