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 #10107/84bb77d1 backport][3.11] Use internal self._headers var in FileResponse #10108

Conversation

patchback[bot]
Copy link
Contributor

@patchback patchback bot commented Dec 4, 2024

This is a backport of PR #10107 as merged into master (84bb77d).

The prepare path called the public self.headers property which has to do a property lookup each time. As we are already
inside the object we can use self._headers instead. This change aligns web_fileresponse with web_response which uses self._headers and not self.headers. This change will not make a significant difference in performance but will make the profile a bit easier to read.

@bdraco bdraco enabled auto-merge (squash) December 4, 2024 20:52
Copy link

codspeed-hq bot commented Dec 4, 2024

CodSpeed Performance Report

Merging #10108 will not alter performance

Comparing patchback/backports/3.11/84bb77d14484c04561fabb7ad628aee903531955/pr-10107 (6318977) with 3.11 (07d1759)

Summary

✅ 46 untouched benchmarks

Copy link

codecov bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.06%. Comparing base (07d1759) to head (6318977).
Report is 1 commits behind head on 3.11.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             3.11   #10108   +/-   ##
=======================================
  Coverage   98.06%   98.06%           
=======================================
  Files         123      123           
  Lines       37113    37113           
  Branches     4466     4466           
=======================================
  Hits        36395    36395           
  Misses        540      540           
  Partials      178      178           
Flag Coverage Δ
CI-GHA 97.95% <100.00%> (ø)
OS-Linux 97.66% <100.00%> (+<0.01%) ⬆️
OS-Windows 94.57% <100.00%> (ø)
OS-macOS 96.77% <100.00%> (+<0.01%) ⬆️
Py-3.10.11 96.63% <100.00%> (+0.01%) ⬆️
Py-3.10.15 97.20% <100.00%> (-0.01%) ⬇️
Py-3.11.10 97.23% <100.00%> (ø)
Py-3.11.9 96.70% <100.00%> (ø)
Py-3.12.7 97.72% <100.00%> (+<0.01%) ⬆️
Py-3.13.0 96.55% <100.00%> (ø)
Py-3.13.1 97.69% <100.00%> (+<0.01%) ⬆️
Py-3.9.13 96.55% <100.00%> (ø)
Py-3.9.20 97.12% <100.00%> (ø)
Py-pypy7.3.16 96.69% <100.00%> (+<0.01%) ⬆️
VM-macos 96.77% <100.00%> (+<0.01%) ⬆️
VM-ubuntu 97.66% <100.00%> (+<0.01%) ⬆️
VM-windows 94.57% <100.00%> (ø)

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 ae153ab into 3.11 Dec 4, 2024
33 checks passed
@bdraco bdraco deleted the patchback/backports/3.11/84bb77d14484c04561fabb7ad628aee903531955/pr-10107 branch December 4, 2024 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant