Skip to content

Reduce latency of write operations #262

Open

Description

@mzimbres

As described in this comment there is an easy way to reduce latency of write operations

We can avoid copying payloads here when the connection has only one ongoing async_exec. The multiplexer get_write_buffer() function could then return a string_view pointing directly to the request internal buffer instead of a copy of it, which would then be used here.

Activity

  1. mzimbres commented on Jun 3, 2025

    @mzimbres
    CollaboratorAuthor

    Something would work here is to add a new option in request::config::allow_pipeline which would be true by default. If set to false the implementation would avoid copying as explained above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions