-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Speed up os.path
#117349
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
Comments
Co-authored-by: Alex Waygood <[email protected]> Co-authored-by: Barney Gale <[email protected]> Co-authored-by: Pieter Eendebak <[email protected]>
@barneygale, can you reopen this? |
Hey @nineteendo. In my opinion, optimisations for
If you have a specific optimisation in mind (that improves performance by 5% or more, perhaps) for a specific function, and you're confident that the full test suite passes with the optimisation applied, then I would advise opening an issue regarding just that one optimisation. The issue should describe the proposed optimisation properly ("fast returns" isn't really a sufficient description here :-). Any PRs linked to that issue should tackle the specific optimisation proposed in the issue, and nothing else. Generic issues that propose "optimising os.path", and PRs that make changes to multiple functions at once, aren't particularly helpful ways to engage in CPython development. |
If the same optimisation can be applied to several functions, can I make a single issue?
Does that include further optimisations to the modified functions, besides the proposed one? Or do I need to make a separate issue? |
I think that would be fine. But I'd make sure to limit any PR so that it only changes functions where that optimisation actually makes a difference :-)
It's hard to say in general. Sometimes we have one issues to track multiple changes to a function or an area of code. Sometimes we're more atomic, and have a different issue to track each specific change. But whatever the case, it's important to have each issue clearly define the work you're proposing to do, and why you think it will be beneficial for users of CPython. If you want to optimise |
) Co-authored-by: Alex Waygood <[email protected]> Co-authored-by: Barney Gale <[email protected]> Co-authored-by: Pieter Eendebak <[email protected]>
Feature or enhancement
Proposal:
There are some minor optimisations possible in
os.path
, including some fast returns.Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Links to previous discussion of this feature:
//
forposixpath.commonpath
#117202Linked PRs
os.path
functions #117350os.path
#117610The text was updated successfully, but these errors were encountered: