Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

fix: yield single buffers #233

Merged
merged 2 commits into from
Nov 24, 2022
Merged

fix: yield single buffers #233

merged 2 commits into from
Nov 24, 2022

Commits on Nov 23, 2022

  1. fix: yield single buffers

    Messages are serialized to multiple buffers, intsead of yield each
    buffer one by one, create single buffers that contain the whole
    serialized message. This greatly improves transport performance as
    writing one big buffer is a lot faster than writing lots of small
    buffers to network sockets etc.
    
    Before:
    
    ```
    testing 0.40.x-mplex
    sender 3276811 messages 17 invocations
    sender 6553636 bufs 17 b 24197 ms
    105 MB in 32 B chunks in 24170ms
    ```
    
    After:
    
    ```
    testing 0.40.x-mplex
    sender 3276811 messages 1638408 invocations
    1638411 bufs 68 b 8626 ms
    105 MB in 32 B chunks in 8611ms
    ```
    achingbrain committed Nov 23, 2022
    Configuration menu
    Copy the full SHA
    3f04b3d View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2022

  1. chore: update comment

    achingbrain committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    1af5586 View commit details
    Browse the repository at this point in the history