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

Updating how we create BloomFilter from rdb loads. BloomFilter vec now has capacity of filter we are loading from #23

Open
wants to merge 1 commit into
base: unstable
Choose a base branch
from

Conversation

zackcam
Copy link
Contributor

@zackcam zackcam commented Nov 19, 2024

Before we were initializing a vector of bloomfilters with Vec::New() which could cause the size to be higher when we pushed an item into the vector during RDB Load and Copy. This is due to the raw alloc vector growth. From testing we saw that it could be four times as large. Which makes sense from this. In order to make this size what we expect we can just set the capacity to the number of filters we know we will be adding

…w has capacity of filter we are loading from

Signed-off-by: zackcam <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants