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

fix: concatenate encrypted data length prefix with data before sending #387

Merged

Commits on Nov 12, 2023

  1. fix: concatenate data length prefix

    Sending lots of tiny buffers kills TCP performance, even with `noDelay` disabled.
    
    Sending the encrypted data length along with the data in one buffer
    increases `@libp2p/perf` throughput with noise+yamux from 300-320 MB/s to 320-340 MB/s
    achingbrain committed Nov 12, 2023
    Configuration menu
    Copy the full SHA
    ad41be1 View commit details
    Browse the repository at this point in the history