Skip to content

Conversation

@bdraco
Copy link
Member

@bdraco bdraco commented Aug 26, 2024

What do these changes do?

This hash is a bit expensive to compute and BaseConnector.connect needs to compute it many times, turn on the cache. I noticed this kept showing up in the profile when looking for another issue.

Note that master has moved to dataclasses so this is only relevant for 3.11/3.10

Are there changes in behavior for the user?

no

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

no

before
before_hash

after
after_hash

This hash is a bit expensive to compute and BaseConnector.connect
needs to compute it many times
@codecov
Copy link

codecov bot commented Aug 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.70%. Comparing base (64c36e2) to head (3497ab2).
Report is 643 commits behind head on 3.11.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             3.11    #8895   +/-   ##
=======================================
  Coverage   97.69%   97.70%           
=======================================
  Files         108      108           
  Lines       34169    34198   +29     
  Branches     4064     4064           
=======================================
+ Hits        33383    33413   +30     
+ Misses        587      586    -1     
  Partials      199      199           
Flag Coverage Δ
CI-GHA 97.60% <100.00%> (+<0.01%) ⬆️
OS-Linux 97.27% <100.00%> (+<0.01%) ⬆️
OS-Windows 94.82% <100.00%> (+0.03%) ⬆️
OS-macOS 96.96% <100.00%> (+0.02%) ⬆️
Py-3.10.11 97.05% <100.00%> (+0.03%) ⬆️
Py-3.10.14 96.98% <100.00%> (+0.01%) ⬆️
Py-3.11.9 97.22% <100.00%> (+0.01%) ⬆️
Py-3.12.4 94.63% <100.00%> (-2.68%) ⬇️
Py-3.12.5 97.01% <100.00%> (?)
Py-3.8.10 ?
Py-3.8.18 ?
Py-3.9.13 96.95% <100.00%> (+0.03%) ⬆️
Py-3.9.19 96.89% <100.00%> (+0.01%) ⬆️
Py-pypy7.3.16 96.49% <100.00%> (+0.01%) ⬆️
VM-macos 96.96% <100.00%> (+0.02%) ⬆️
VM-ubuntu 97.27% <100.00%> (+<0.01%) ⬆️
VM-windows 94.82% <100.00%> (+0.03%) ⬆️

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 added the bot:chronographer:skip This PR does not need to include a change note label Aug 26, 2024
@bdraco bdraco marked this pull request as ready for review August 26, 2024 19:15
@bdraco bdraco requested a review from asvetlov as a code owner August 26, 2024 19:15
@bdraco bdraco merged commit 68629b5 into 3.11 Aug 26, 2024
@bdraco bdraco deleted the cache_connection_key_hash branch August 26, 2024 19:25
@patchback
Copy link
Contributor

patchback bot commented Aug 26, 2024

Backport to 3.10: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.10/68629b523f4f91651ab75b23a534881794f82a26/pr-8895

Backported as #8903

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

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.

2 participants