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

How to avoid copies for request value between network buffers, segments, byte array. #691

Open
meijies opened this issue May 19, 2020 · 0 comments
Labels
enhancement enhancement

Comments

@meijies
Copy link
Collaborator

meijies commented May 19, 2020

  1. copy between buffer and segment.
    client request: network -> netty -> byteBuf -> deserialize -> byte array -> memory segment.
    sync request: memory segment -> byte array -> serialize -> byteBuf -> network.

  2. read value
    read from segment and get a array: creating a object and copying the bytes happened

@jovany-wang jovany-wang added the enhancement enhancement label May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement enhancement
Projects
None yet
Development

No branches or pull requests

2 participants