Skip to content

Commit 3547a87

Browse files
committed
add #[inline] to Path comparison fast path
1 parent 2031fd6 commit 3547a87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/std/src/path.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,7 @@ impl cmp::Ord for Components<'_> {
993993
}
994994
}
995995

996+
#[inline]
996997
fn compare_components(mut left: Components<'_>, mut right: Components<'_>) -> cmp::Ordering {
997998
// Fast path for long shared prefixes
998999
//

0 commit comments

Comments
 (0)