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

replace unnecessary Bytes with Vec<u8> and &[u8] in storage module #83

Open
MrCroxx opened this issue Mar 30, 2022 · 2 comments
Open

replace unnecessary Bytes with Vec<u8> and &[u8] in storage module #83

MrCroxx opened this issue Mar 30, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request for optimization.

Comments

@MrCroxx
Copy link
Owner

MrCroxx commented Mar 30, 2022

As in #74 , create or clone Bytes involves atomic operation, whose costs cannot be ignored if performs frequently (e.g. in iterators). Unnecessary Bytes should be replaced with Vec<u8> or &[u8].

@MrCroxx MrCroxx added the enhancement New feature or request for optimization. label Mar 30, 2022
@zackertypical
Copy link
Contributor

lgtm

@MrCroxx MrCroxx assigned MrCroxx and zackertypical and unassigned MrCroxx Apr 8, 2022
@MrCroxx
Copy link
Owner Author

MrCroxx commented Apr 8, 2022

@zackertypical Welcome, please make sure to run make fmt to lint the codw and resolve all warnings manually, otherwise CI would not pass.

zackertypical added a commit to zackertypical/RunKV that referenced this issue Apr 10, 2022
zackertypical added a commit to zackertypical/RunKV that referenced this issue Apr 10, 2022
zackertypical added a commit to zackertypical/RunKV that referenced this issue Apr 10, 2022
zackertypical added a commit to zackertypical/RunKV that referenced this issue Apr 10, 2022
zackertypical added a commit to zackertypical/RunKV that referenced this issue Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request for optimization.
Projects
None yet
Development

No branches or pull requests

2 participants