SIGN IN SIGN UP

GH-112361: Speed up pathlib by removing some temporary objects. (#112362)

Construct only one new list object (using `list.copy()`) when creating a
new path object with a modified tail. This slightly speeds up
`with_name()` and `with_suffix()`
B
Barney Gale committed
19a1fc1b3df30f64450d157dc3a5d40c992e347f
Parent: 6b961b8
Committed by GitHub <noreply@github.com> on 11/25/2023, 5:19:38 PM