Skip to content
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

Optimise pathlib.Path.relative_to() #112405

Closed
AlexWaygood opened this issue Nov 25, 2023 · 0 comments · Fixed by #112406
Closed

Optimise pathlib.Path.relative_to() #112405

AlexWaygood opened this issue Nov 25, 2023 · 0 comments · Fixed by #112406
Assignees
Labels
3.13 new features, bugs and security fixes performance Performance or resource usage topic-pathlib type-feature A feature request or enhancement

Comments

@AlexWaygood
Copy link
Member

AlexWaygood commented Nov 25, 2023

Feature or enhancement

Proposal:

pathlib.Path.relative_to() can be significantly optimised by making use of itertools.chain

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

Linked PRs

@AlexWaygood AlexWaygood added type-feature A feature request or enhancement performance Performance or resource usage topic-pathlib 3.13 new features, bugs and security fixes labels Nov 25, 2023
@AlexWaygood AlexWaygood self-assigned this Nov 25, 2023
AlexWaygood added a commit to AlexWaygood/cpython that referenced this issue Nov 25, 2023
aisk pushed a commit to aisk/cpython that referenced this issue Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 new features, bugs and security fixes performance Performance or resource usage topic-pathlib type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
@AlexWaygood and others