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
pathlib's deferred joining slows real workloads #113888
In #104996 I made pathlib defer joining of arguments given to path initialisers (like PurePath('a', 'b') and via joinpath(), __truediv__() and __rtruediv__().
This "optimisation" often results in more path joining. Consider:
Activity
Add `pathlib._abc.PathModuleBase`
barneygale commentedon Jan 13, 2024
OTOH:
With the current implementation this causes:
But if we joined up-front, it would cause:
barneygale commentedon Jan 13, 2024
I haven't been able to establish which is better, so I'll close this issue as not planned.