How to speed up binary transfer? #503
Unanswered
adamplonka
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Thanks for bringing this up. The multiplexing protocol was designed to be lightweight and minimal. I'm very surprised to hear of this speed decrease of this magnitude. I'll take a look. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to send a large binary file using
MultiplexingStreamoverTcpSocket. I tried to send it directly using sockets (for now on loopback interface) and I'm able to transfer over 10GB/s.When I try to do the same using
MultiplexingStreamand returnStream,PipeReaderor create separate channel I could get up to only 80MB/s.I tried to increase the buffer sizes but with no luck. Does the
MultiplexingStreamadd so much overhead that it's not possible to get it any faster?// after lot of tries I found out that there is a significant difference in speed between versions and I tried to use the newest one
Average speeds I got on my laptop are:
V1 - 118.11 MBps
V2 - 41.5 MBps
V3 - 48.0 MBps
Anyway - this application will run on a much slower device which during my initial tests got only up to 8MBps on V3; there's still a huge gap between multiplexed stream and raw stream speeds. Is there any way to make it faster?
Great library btw
Beta Was this translation helpful? Give feedback.
All reactions