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

Improve performance of starting request handlers with Python 3.12+ #8681

Merged
merged 5 commits into from
Aug 17, 2024

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Aug 11, 2024

What do these changes do?

Improve performance of starting request handlers with Python 3.12+ by starting the task eagerly.

followup to #8661 as I missed one more place we create a task

Are there changes in behavior for the user?

no

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

no

followup to #8666 as I missed one more place we create a task
@bdraco bdraco added backport-3.10 Trigger automatic backporting to the 3.10 release branch by Patchback robot backport-3.11 Trigger automatic backporting to the 3.11 release branch by Patchback robot labels Aug 11, 2024
@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Aug 11, 2024
aiohttp/web_protocol.py Dismissed Show dismissed Hide dismissed
Copy link

codecov bot commented Aug 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.98%. Comparing base (bbe7197) to head (09ac95f).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8681   +/-   ##
=======================================
  Coverage   97.98%   97.98%           
=======================================
  Files         107      107           
  Lines       33825    33829    +4     
  Branches     3969     3970    +1     
=======================================
+ Hits        33143    33147    +4     
  Misses        505      505           
  Partials      177      177           
Flag Coverage Δ
CI-GHA 97.88% <83.33%> (-0.01%) ⬇️
OS-Linux 97.54% <83.33%> (-0.01%) ⬇️
OS-Windows 95.92% <83.33%> (-0.01%) ⬇️
OS-macOS 97.21% <83.33%> (-0.01%) ⬇️
Py-3.10.11 97.34% <66.66%> (-0.01%) ⬇️
Py-3.10.14 97.28% <66.66%> (-0.01%) ⬇️
Py-3.11.9 97.51% <66.66%> (-0.01%) ⬇️
Py-3.12.4 97.62% <66.66%> (-0.01%) ⬇️
Py-3.8.10 95.56% <66.66%> (-0.01%) ⬇️
Py-3.8.18 97.06% <66.66%> (-0.01%) ⬇️
Py-3.9.13 97.22% <66.66%> (-0.01%) ⬇️
Py-3.9.19 97.16% <66.66%> (-0.01%) ⬇️
Py-pypy7.3.16 96.74% <66.66%> (-0.01%) ⬇️
VM-macos 97.21% <83.33%> (-0.01%) ⬇️
VM-ubuntu 97.54% <83.33%> (-0.01%) ⬇️
VM-windows 95.92% <83.33%> (-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 marked this pull request as ready for review August 11, 2024 14:42
@bdraco bdraco merged commit 30a3d0e into master Aug 17, 2024
36 of 37 checks passed
@bdraco bdraco deleted the improve_request_handler_performance_part_2 branch August 17, 2024 13:33
Copy link
Contributor

patchback bot commented Aug 17, 2024

Backport to 3.10: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.10/30a3d0ef1ddfec7351d7dc322e738be14c29759a/pr-8681

Backported as #8725

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

Copy link
Contributor

patchback bot commented Aug 17, 2024

Backport to 3.11: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.11/30a3d0ef1ddfec7351d7dc322e738be14c29759a/pr-8681

Backported as #8726

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

patchback bot pushed a commit that referenced this pull request Aug 17, 2024
bdraco added a commit that referenced this pull request Aug 17, 2024
…quest handlers with Python 3.12+ (#8725)

Co-authored-by: J. Nick Koston <nick@koston.org>
bdraco added a commit that referenced this pull request Aug 17, 2024
…quest handlers with Python 3.12+ (#8726)

Co-authored-by: J. Nick Koston <nick@koston.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-3.10 Trigger automatic backporting to the 3.10 release branch by Patchback robot backport-3.11 Trigger automatic backporting to the 3.11 release branch by Patchback robot bot:chronographer:provided There is a change note present in this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant