File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,10 +7,6 @@ import (
77)
88
99const (
10- // DefaultBadgerBlockCacheSize bounds Badger's block cache off-heap usage.
11- // This node is primarily append/sync-oriented, so prefer a conservative
12- // default over maximizing read cache hit rate.
13- DefaultBadgerBlockCacheSize int64 = 128 << 20 // 128 MiB
1410 // DefaultBadgerIndexCacheSize bounds Badger's table index and bloom filter
1511 // cache to avoid growth with chain length.
1612 DefaultBadgerIndexCacheSize int64 = 256 << 20 // 256 MiB
@@ -23,7 +19,6 @@ func BadgerOptions() *badger4.Options {
2319
2420 // Bound Badger-owned caches explicitly instead of inheriting a large block
2521 // cache and an unbounded index cache from the upstream defaults.
26- opts .Options = opts .WithBlockCacheSize (DefaultBadgerBlockCacheSize )
2722 opts .Options = opts .WithIndexCacheSize (DefaultBadgerIndexCacheSize )
2823 // Disable conflict detection to reduce write overhead; ev-node does not rely
2924 // on Badger's multi-writer conflict checks for correctness.
You can’t perform that action at this time.
0 commit comments