Skip to content

perf: avoid urljoin for absolute urls - #10896

Merged
radoering merged 1 commit into
python-poetry:mainfrom
radoering:perf/link-urljoin
May 16, 2026
Merged

radoering merged 1 commit into
python-poetry:mainfrom
radoering:perf/link-urljoin

Conversation

@radoering

Copy link
Copy Markdown
Member

This makes locking 15 % faster in some cases.

Pull Request Check List

  • Added tests for changed code.
  • Updated documentation for changed code.

This makes locking 15 % faster in some cases.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've left some high level feedback:

  • Since file['url'] is reused only once, you could avoid reassigning file_url and instead compute a local resolved_url to keep the logic clearer between the original value and the normalized URL.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Since `file['url']` is reused only once, you could avoid reassigning `file_url` and instead compute a local `resolved_url` to keep the logic clearer between the original value and the normalized URL.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@radoering
radoering merged commit 050a405 into python-poetry:main May 16, 2026
54 checks passed
@github-actions

Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants