opendal icon indicating copy to clipboard operation
opendal copied to clipboard

kv: Use Bytes as value to avoid copy between read/write

Open Xuanwo opened this issue 2 years ago • 1 comments

Now, we are store Vec<u8> in all kv adapters. Maybe it's better to store a Bytes instead?

For example, read data from HashMap<String, Bytes> will not need to clone the entire bytes anymore.

Xuanwo avatar Feb 21 '23 04:02 Xuanwo

@PsiACE, do you wanna to take this issue a look?

Xuanwo avatar Feb 21 '23 04:02 Xuanwo