[refactor] Use batch_encode_into/batch_decode_from for Yuanrong backend#110
Merged
Conversation
CLA Signature Passdpj135, thanks for your pull request. All authors of the commits have signed the CLA. 👍 |
…code_from Signed-off-by: dpj135 <958208521@qq.com>
3faae0b to
36d58d2
Compare
CLA Signature Passdpj135, thanks for your pull request. All authors of the commits have signed the CLA. 👍 |
batch_encode_into/batch_decode_from for Yuanrong backend
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Yuanrong general KV zero-copy serialization path to use the shared batch serialization helpers introduced in #107.
Changes:
- Replaces local pack/unpack helpers with
batch_encode_into/batch_decode_from. - Adjusts Yuanrong zero-copy set/get flow to allocate DataSystem buffers through the batch encoder.
- Updates the Yuanrong zero-copy test mocks to patch shared serialization entry points.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
transfer_queue/storage/clients/yuanrong_client.py |
Uses shared batch serialization helpers for general KV zero-copy storage and retrieval. |
tests/test_yuanrong_client_zero_copy.py |
Updates test serialization/deserialization mocks for the new batch helper path. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
0oshowero0
approved these changes
May 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Decription
Adjust logics of
yuanrong_clientbased on #107 .pack_into/encodewithbatch_encode_into.unpack_from/decodewithbatch_decode_from