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

Backport to_bytes performance optimizations #121

Open
wants to merge 2 commits into
base: 0.4.x
Choose a base branch
from

Conversation

rtimush
Copy link

@rtimush rtimush commented May 14, 2024

Backports #94 and #112.

We had some performance issues and found out that to_bytes() has a quadratic complexity with respect to the number of chunks in the BufList (in our case it was taking 10 minutes to run to_bytes on a ~65MB body). This has been already fixed in 1.x, but 0.4.x seems to be still widely used, so it would be nice to have this fix there as well.

@rtimush rtimush changed the title Backport has_remaining performance optimization Backport to_bytes performance optimization May 14, 2024
@rtimush rtimush changed the title Backport to_bytes performance optimization Backport to_bytes performance optimizations May 14, 2024
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