tonic icon indicating copy to clipboard operation
tonic copied to clipboard

Sending large packets is slow (on the client)

Open Jasper-Bekkers opened this issue 5 years ago • 2 comments

Bug Report

I've only made a minor modification to the helloworld sample so the message takes bytes instead of a string. Then I send it around 2G of data in a single packet. Tonic seems to spend a significant time (much more then would be the norm for a normal 2GB memcpy) moving this data around.

Ideally it should just zero-copy / move the data into the OS.

image

Minimal repro attached

tonic-repro.zip

Relates to #352 as well

Jasper-Bekkers avatar May 16 '20 16:05 Jasper-Bekkers

Both this and #352 share the same repro case btw.

Jasper-Bekkers avatar May 16 '20 16:05 Jasper-Bekkers

also @seanmonstar :)

LucioFranco avatar Jun 03 '20 16:06 LucioFranco