Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Feature or enhancement
We could implement / reuse the same fast paths that we did foros.path.* in#101324 forpathlib.Path.*. It will require a little more work, since thepathlib.Path API can returnOSError under certain circumstances, whereasos.path would returnFalse in those cases.
Pitch
We saw a 12-25% speedup doing this foros.path. It would be unfortunate if people chose the lower-level API for performance reasons becausepathlib.Path didn't match it in performance.