Sending large packets is slow (on the client)
Open
- Dominant language
- Rust
- Stars
- 12.5k
- Forks
- 1.3k
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 24
Description
## 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.

Minimal repro attached
[tonic-repro.zip](https://github.com/hyperium/tonic/files/4638706/tonic-repro.zip)
Relates to #352 as well
Contributor guide
Assessment
This issue has not been assessed yet.