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
New changeset 4a85718 by kfollstad in branch 'master': bpo-43970: Optimize Path.cwd() in pathlib by not instantiating a class unnecessarily (GH-25699) 4a85718
Activity
kfollstad commentedon Apr 28, 2021
python3.10 -m timeit -r 5 -n 100000 -s 'from pathlib import Path' 'Path.cwd()'
100000 loops, best of 5: 206 usec per loop
python3.10-mypatch -m timeit -r 5 -n 100000 -s 'from pathlib import Path' 'Path.cwd()'
100000 loops, best of 5: 156 usec per loop
ericvsmith commentedon Apr 28, 2021
New changeset 4a85718 by kfollstad in branch 'master':
bpo-43970: Optimize Path.cwd() in pathlib by not instantiating a class unnecessarily (GH-25699)
4a85718
ericvsmith commentedon Apr 28, 2021
I'm merging this not so much because of the performance aspect, but just to remove some unnecessary code.
But in any event, thanks for the contribution!