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

[utils/bloom] Optionally Update Bloom Filter Size on Reset #2591

Merged
merged 41 commits into from
Jan 10, 2024

Conversation

patrick-ogrady
Copy link
Contributor

@patrick-ogrady patrick-ogrady commented Jan 5, 2024

Why this should be merged

If the size of items that a bloom filter is tracking increases above the expected number, it can trigger frequent resets. We should instead grow the bloom filter to maintain the same target false positive probability.

How this works

Modifies reset logic to grow the bloom filter if the number of target items grows.

Related: ava-labs/coreth#452

How this was tested

CI

@patrick-ogrady patrick-ogrady changed the title [utils/bloom] Update Bloom Filter Size on Reset [utils/bloom] Optionally Update Bloom Filter Size on Reset Jan 6, 2024
Base automatically changed from optimize-bloom-filter to dev January 8, 2024 03:38
@patrick-ogrady patrick-ogrady requested a review from gyuho as a code owner January 8, 2024 03:38
network/p2p/gossip/bloom.go Outdated Show resolved Hide resolved
network/p2p/gossip/bloom.go Outdated Show resolved Hide resolved
@StephenButtolph StephenButtolph added the networking This involves networking label Jan 10, 2024
@StephenButtolph StephenButtolph added this pull request to the merge queue Jan 10, 2024
Merged via the queue into dev with commit b25c247 Jan 10, 2024
17 checks passed
@StephenButtolph StephenButtolph deleted the dynamic-reset-size branch January 10, 2024 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
networking This involves networking
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants