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

Avoid useless space allocation in SetBit #338

Merged
merged 1 commit into from
Jul 23, 2021
Merged

Conversation

smartlee
Copy link
Contributor

when exec command setbit aaa 8180 1 setbit aaa 8191 1 in order ,SetBit allocates 2046 bytes, but index 1024-2046 is useless and will casue waste of disk space.

@git-hulk git-hulk requested review from git-hulk and ShooterIT July 22, 2021 11:03
@git-hulk git-hulk added the enhancement type enhancement label Jul 22, 2021
@ShooterIT
Copy link
Member

LGTM, but don't read.

@git-hulk git-hulk merged commit 3573671 into apache:unstable Jul 23, 2021
@ShooterIT ShooterIT changed the title Fix: avoid useless space allocation in SetBit Avoid useless space allocation in SetBit Sep 10, 2021
ShooterIT pushed a commit to ShooterIT/kvrocks that referenced this pull request Sep 10, 2021
@ShooterIT ShooterIT mentioned this pull request Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement type enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants