Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client: Provide method to copy binary object to the remote node #533

Closed
wants to merge 2 commits into from

Conversation

cthulhu-rider
Copy link
Contributor

@cthulhu-rider cthulhu-rider commented Nov 15, 2023

This allows to use generators in benchmark tests and pass `testing.B`.

Signed-off-by: Leonard Lyubich <[email protected]>
Sometimes there is a need to copy object encoded into Protocol Buffers
binary format to the remote node. Previously, to do this, there was a
need to almost completely decode the object. Faster binary transmission
in demand during object replication (node-to-node) procedure performed
by NeoFS storage nodes.

Add `CopyBinaryObjectToNode` method that works with binary objects
accessed through `io.ReadSeeker` stream. The method is optimized to
encode different stream messages using single buffer.

Signed-off-by: Leonard Lyubich <[email protected]>
@cthulhu-rider
Copy link
Contributor Author

@cthulhu-rider cthulhu-rider deleted the feature/object-bin-replication branch August 21, 2024 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant