[Lldb-commits] [PATCH] D45977: Always normalize FileSpec paths.
Greg Clayton via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 25 15:15:50 PDT 2018
clayborg updated this revision to Diff 144021.
clayborg added a comment.
After doing performance tests, the code was 7 to 10 % slower if we didn't check if a path needs normalization due to the llvm code making arrays of StringRef objects and appending a path together. Restored and even improved performance after adding back the needsNormalization() function that quickly checks if a path needs normalization and avoids the splitting of the path and reconstruction of the path if it isn't needed.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 28605 bytes
Desc: not available
More information about the lldb-commits