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

Optimize gateway transport #1898

Merged
merged 4 commits into from
Apr 28, 2024

Conversation

beagold
Copy link
Contributor

@beagold beagold commented Apr 27, 2024

Summary

  • Merge cold path for zlib compression into receive_and_check_zlib to avoid additional call
  • Handle data in bytes, rather than in str to make good use of speedups (similar to RESTClient)

Took the liberty to improve some of the tests

Additionally, this is a draft because it will require changes once #1897 is merged

Checklist

  • I have run nox and all the pipelines have passed.
  • I have made unittests according to the code I have added/modified/deleted.

Related issues

None

- Merge cold path for zlib compression into `receive_and_check_zlib` to avoid additional call
- Handle data in bytes, rather than in str to make good use of speedups (similar to RESTClient)
@beagold beagold added the enhancement New feature or request label Apr 27, 2024
@beagold beagold requested a review from FasterSpeeding April 27, 2024 16:38
@beagold beagold self-assigned this Apr 27, 2024
@beagold beagold marked this pull request as ready for review April 28, 2024 07:58
@beagold beagold changed the title Optimize GatewayTransport Optimize gateway transport Apr 28, 2024
@beagold beagold merged commit 2a69b60 into hikari-py:master Apr 28, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants