[Lldb-commits] [PATCH] D130396: Cache the value for absolute path in FileSpec.
Greg Clayton via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Jul 22 13:29:06 PDT 2022
clayborg created this revision.
clayborg added reviewers: labath, JDevlieghere, yinghuitan.
Herald added a project: All.
clayborg requested review of this revision.
Herald added subscribers: lldb-commits, aheejin.
Herald added a project: LLDB.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D130396
Files:
lldb/include/lldb/Utility/FileSpec.h
lldb/source/Utility/FileSpec.cpp
lldb/unittests/Utility/FileSpecTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130396.446964.patch
Type: text/x-patch
Size: 4684 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220722/799f6edc/attachment-0001.bin>
More information about the lldb-commits
mailing list