AbsolutePath::Parent
should not re-check the path's absoluteness
#17
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Current implementation of
AbsolutePath::Parent
just creates a newAbsolutePath
instance, which will perform a check for path's absoluteness (absolution?).We should consider optimizing that case, since a parent of a known absolute path is guaranteed to be absolute itself (if it is present at all).
Perhaps introduce an private method to create instances of
AbsolutePath
unchecked?See
TODO[#17]
in the code when implementing this.The text was updated successfully, but these errors were encountered: