You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Speed up pathlib by removing a few temporary objects #112361
A handful of pathlib methods that create paths with modified names, or additional segments, use list objects that are quickly thrown away. We can speed these methods up by only creating new lists where strictly necessary.
Specifically:
with_name() (performance of self._tail[:-1] + [name] is cursed)
Activity
pythonGH-112361: Speed up pathlib by removing some temporary objects.
GH-112361: Speed up pathlib by removing some temporary objects. (#112362
pythonGH-112361: Speed up pathlib by removing some temporary objects. (…
pythonGH-112361: Speed up pathlib by removing some temporary objects. (…