Skip to content

Avoid useless space allocation in SetBit#338

Merged
git-hulk merged 1 commit intoapache:unstablefrom
smartlee:patch-3
Jul 23, 2021
Merged

Avoid useless space allocation in SetBit#338
git-hulk merged 1 commit intoapache:unstablefrom
smartlee:patch-3

Conversation

@smartlee
Copy link
Copy Markdown
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 ShooterIT and git-hulk July 22, 2021 11:03
@git-hulk git-hulk added the enhancement type enhancement label Jul 22, 2021
@ShooterIT
Copy link
Copy Markdown
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