SystemTools: Refactor CollapseFullPath to call getcwd only when needed
Many calls to the one-argument `CollapseFullPath` variant already have an absolute path and just need to collapse it. Avoid calling `getcwd` if the result is not needed because it can be an expensive syscall.
Loading
Please register or sign in to comment