-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Set websocket writer compression to Z_BEST_SPEED #4993
Conversation
The performance overhead of using the defaults was noticeable with many connections. This change matches Nginx default.
2a85f71
to
413c02a
Compare
Codecov Report
@@ Coverage Diff @@
## master #4993 +/- ##
=======================================
Coverage 97.61% 97.61%
=======================================
Files 43 43
Lines 8933 8933
Branches 1406 1406
=======================================
Hits 8720 8720
Misses 95 95
Partials 118 118
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Not sure if docs should be updated as the compression level isn't currently documented. |
If this is acceptable, I'll make a backport PR to 3.6 as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
The performance overhead of using the defaults was noticeable with many connections. This change matches Nginx default. Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> (cherry picked from commit b66b36a)
The performance overhead of using the defaults was noticeable with many connections. This change matches Nginx default. Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
💚 Backport successfulThe PR was backported to the following branches:
|
The performance overhead of using the defaults was noticeable with many connections. This change matches Nginx default. Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> (cherry picked from commit b66b36a) Co-authored-by: J. Nick Koston <nick@koston.org>
@bdraco sorry, the time window for aiohttp 3.6 is closed. |
The performance overhead of using the defaults was noticeable with many connections. This change matches Nginx default. Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
What do these changes do?
The performance overhead of using the defaults was
noticeable with many connections. This change
matches Nginx default.
Are there changes in behavior for the user?
This is a noticeable performance gain with many connections
and large message sizes. Compressed sizes will be slightly
smaller as described #2856 (comment)
Related issue number
#2856 (comment)
Checklist
CONTRIBUTORS.txt
CHANGES
folder<issue_id>.<type>
for example (588.bugfix)issue_id
change it to the pr id after creating the pr.feature
: Signifying a new feature..bugfix
: Signifying a bug fix..doc
: Signifying a documentation improvement..removal
: Signifying a deprecation or removal of public API..misc
: A ticket has been closed, but it is not of interest to users.