Skip to content

Commit

Permalink
perf: reduce quarantine eviction (bnb-chain#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
bendanzhentan committed Sep 27, 2023
1 parent 039e6fd commit ab2a507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion op-node/p2p/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func NewSyncClient(log log.Logger, cfg *rollup.Config, newStream newStreamFn, rc
// never errors with positive LRU cache size
// TODO(CLI-3733): if we had an LRU based on on total payloads size, instead of payload count,
// we can safely buffer more data in the happy case.
q, _ := simplelru.NewLRU[common.Hash, syncResult](100, c.onQuarantineEvict)
q, _ := simplelru.NewLRU[common.Hash, syncResult](3600, c.onQuarantineEvict)
c.quarantine = q
trusted, _ := simplelru.NewLRU[common.Hash, struct{}](10000, nil)
c.trusted = trusted
Expand Down

0 comments on commit ab2a507

Please sign in to comment.