-
Notifications
You must be signed in to change notification settings - Fork 73
Avoid cloning for parameter in RPC call. #184
Comments
@olix0r bytes crate looks nice for this purpose. But to chage this do we need to change https://github.com/danburkert/prost ? |
@agend I think that's correct; but I imagine prost users would generally benefit from this, so we may want to propose a breaking change. |
@danburkert wdyt? At least we could have some way to configure prost-build to use |
FYI there is a draft PR up in prost now for bytes and bytesstring usage which may be helpful. |
Yep, this has always been on the roadmap for |
@danburkert just checking in, is there some work going on or it's stalled? Thanks! |
I'm developing distributed storage system. There is a place in code where I send multiple requests to nodes in cluster to store replicas. Now I have to clone data buffer to do this in parallel. It would be great to find approach to avoid cloning as data buffer could be significant in size.
https://github.com/qoollo/bob/blob/master/src/core/bob_client.rs#L75
buffer is immutable and something like Arc would be enough.
The text was updated successfully, but these errors were encountered: