-
Notifications
You must be signed in to change notification settings - Fork 119
fix(l1, l2): tuning parameters of qfilter #5166
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR increases the initial capacity of the trie layering bloom filter from 100,000 to 1,000,000 entries, representing a 10x increase to better accommodate larger workloads.
- Adjusted the initial capacity parameter of the bloom filter from 100,000 to 1,000,000
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| } | ||
|
|
||
| impl TrieLayerCache { | ||
| // TODO: tune this |
Copilot
AI
Nov 3, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The create_filter function has a TODO comment indicating these parameters need tuning. With this significant 10x increase in initial capacity, consider documenting the rationale for this specific value (e.g., based on observed workload patterns or performance testing) to help future maintainers understand why 1,000,000 was chosen and when it might need adjustment.
| // TODO: tune this | |
| // Initial capacity set to 1,000,000 to accommodate expected high volume of keys per observed workload patterns. | |
| // This is a 10x increase over typical defaults, based on performance testing to minimize false positives and | |
| // avoid frequent resizing. Future maintainers should revisit this value if workload characteristics change, | |
| // or if memory usage/performance becomes a concern. See issue #1234 for tuning discussion. |
Lines of code reportTotal lines added: Detailed view |
**Motivation** Bloom filter was set in a small capacity. **Description** <!-- A clear and concise general description of the changes this PR introduces --> <!-- Link to issues: Resolves #111, Resolves #222 --> Closes #issue_number --------- Co-authored-by: Javier Rodríguez Chatruc <49622509+jrchatruc@users.noreply.github.com> Co-authored-by: Javier Chatruc <jrchatruc@gmail.com>
Motivation
Bloom filter was set in a small capacity.
Description
Closes #issue_number