Skip to content

Commit 271e68a

Browse files
fix(l1, l2): tuning parameters of qfilter (#5166)
**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 <[email protected]> Co-authored-by: Javier Chatruc <[email protected]>
1 parent 1130d27 commit 271e68a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/storage/trie_db/layering.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl Default for TrieLayerCache {
4444
impl TrieLayerCache {
4545
// TODO: tune this
4646
fn create_filter() -> Result<qfilter::Filter, qfilter::Error> {
47-
qfilter::Filter::new_resizeable(100_000, 100_000_000, 0.02)
47+
qfilter::Filter::new_resizeable(1_000_000, 100_000_000, 0.02)
4848
.inspect_err(|e| tracing::warn!("could not create trie layering bloom filter {e}"))
4949
}
5050

0 commit comments

Comments
 (0)