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

[PR #9367/b612127d backport][3.10] Speed up handling auth in urls #9380

Conversation

patchback[bot]
Copy link
Contributor

@patchback patchback bot commented Oct 1, 2024

This is a backport of PR #9367 as merged into master (b612127).

What do these changes do?

Avoids calling the .user and .password methods if the raw versions are not set as auth in urls is going to be the rare case.

The cache of raw_password and raw_user is guaranteed to be set in yarl once the netloc is parsed

Are there changes in behavior for the user?

no

Is it a substantial burden for the maintainers to support this?

no

before

Screenshot 2024-10-01 at 4 50 34 AM

after
Screenshot 2024-10-01 at 4 49 06 AM

@patchback patchback bot requested a review from asvetlov as a code owner October 1, 2024 16:57
@bdraco bdraco added the bot:chronographer:skip This PR does not need to include a change note label Oct 1, 2024
@bdraco bdraco enabled auto-merge (squash) October 1, 2024 16:58
Copy link

codecov bot commented Oct 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.78%. Comparing base (7019054) to head (de9f326).
Report is 1 commits behind head on 3.10.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             3.10    #9380   +/-   ##
=======================================
  Coverage   97.78%   97.78%           
=======================================
  Files         108      108           
  Lines       34886    34888    +2     
  Branches     4174     4174           
=======================================
+ Hits        34114    34116    +2     
  Misses        574      574           
  Partials      198      198           
Flag Coverage Δ
CI-GHA 97.67% <100.00%> (+<0.01%) ⬆️
OS-Linux 97.35% <100.00%> (+<0.01%) ⬆️
OS-Windows 94.97% <100.00%> (+<0.01%) ⬆️
OS-macOS 97.04% <100.00%> (-0.01%) ⬇️
Py-3.10.11 96.91% <100.00%> (+<0.01%) ⬆️
Py-3.10.15 96.85% <100.00%> (+<0.01%) ⬆️
Py-3.11.10 96.93% <100.00%> (+<0.01%) ⬆️
Py-3.11.9 96.99% <100.00%> (+<0.01%) ⬆️
Py-3.12.6 97.39% <100.00%> (+<0.01%) ⬆️
Py-3.13.0-rc.2 97.37% <100.00%> (+<0.01%) ⬆️
Py-3.8.10 94.35% <100.00%> (+<0.01%) ⬆️
Py-3.8.18 96.64% <100.00%> (+<0.01%) ⬆️
Py-3.9.13 96.83% <100.00%> (+<0.01%) ⬆️
Py-3.9.20 96.77% <100.00%> (+<0.01%) ⬆️
Py-pypy7.3.16 96.37% <100.00%> (+<0.01%) ⬆️
VM-macos 97.04% <100.00%> (-0.01%) ⬇️
VM-ubuntu 97.35% <100.00%> (+<0.01%) ⬆️
VM-windows 94.97% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bdraco bdraco merged commit 0a74b54 into 3.10 Oct 1, 2024
33 of 34 checks passed
@bdraco bdraco deleted the patchback/backports/3.10/b612127d4ef5d99bd47151d8643e590f12cd5c20/pr-9367 branch October 1, 2024 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot:chronographer:skip This PR does not need to include a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant