New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-118263: Generalize path_t
for C level optimizations
#118355
base: main
Are you sure you want to change the base?
Conversation
@barneygale, @ronaldoussoren could you review this pull request instead then? |
@eryksun, I wasn't able to use this for I was able to speed up |
I think you'll be particularly pleased with this addition (I don't know why we didn't do this earlier): Lines 5564 to 5569 in 19209c6
|
This comment was marked as resolved.
This comment was marked as resolved.
The converter could set a flag in the
This change shouldn't affect anything compatibility-wise, and if so that needs to be addressed. It's support code for CPython. I think it could be added to beta 2 this month if it misses beta 1. |
I added a suppress option, which tells argument clinic you would like to handle errors manually, otherwise |
Co-authored-by: Eryk Sun <eryksun@gmail.com>
Co-authored-by: Eryk Sun <eryksun@gmail.com>
Co-authored-by: Eryk Sun <eryksun@gmail.com>
I get a similar performance increase on Windows:
There's no significant change in the performance of the |
Would you accept this now? |
I requested @zooba and @barneygale to review your changes. Steve implemented the original changes to |
Benchmark:
ntpath.py
script
Note: no difference for
ntpath.is*()
&ntpath.exists()
.posixpath.py
script
path_t
for C level optimizations #118263