grpc / grpc/grpc-rust

Sending large packets is slow (on the client)

Open
#353 2 comments 0 reactions 0 assignees View on GitHub
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.

![image](https://user-images.githubusercontent.com/49594/82123842-cf305e00-979b-11ea-9b4e-d6432b420a7e.png)

Minimal repro attached

[tonic-repro.zip](https://github.com/hyperium/tonic/files/4638706/tonic-repro.zip)

Relates to #352 as well

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.