commit | 044a6cfb528fdb1244a023353a75336e9b0c07c7 | [log] [tgz] |
---|---|---|
author | Greg Clayton <gclayton@fb.com> | Thu Jul 28 13:31:41 2022 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Jul 28 13:46:08 2022 -0700 |
tree | 8fc9ea1153cf20a18c46e5a8422630f50469b2be | |
parent | 578bd48dd3197ab3985552ec89f3e70501f878f7 [diff] |
Cache the value for absolute path in FileSpec. 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. Differential Revision: https://reviews.llvm.org/D130396 GitOrigin-RevId: dc0f452e85e572f1e824c1eb3cdaa060d326f0c3