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

feat(core): amortize many ready messages into fewer, larger buffers #1423

Merged
merged 2 commits into from
Sep 1, 2023

Commits on Jun 27, 2023

  1. feat(core): amortize many ready messages into fewer, larger buffers

    Introduce an EncodedBytes combinator which encodes multiple ready
    messages - up to a yield threshold - before yielding the next bytes
    buffer.
    
    Or, if the message stream polls to pending, yield the available bytes
    immediately.
    
    These ammortized buffers exhibit far better throughput when streaming
    a high rate of small messages, because hyper and h2 avoid copying the
    yielded buffer and dispatch each as a separate, non-vectorized tcp send.
    jgraettinger committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    b4f6445 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2023

  1. Configuration menu
    Copy the full SHA
    a4a2970 View commit details
    Browse the repository at this point in the history