Skip to content

Commit

Permalink
perf: reduce quarantine eviction
Browse files Browse the repository at this point in the history
  • Loading branch information
bendanzhentan committed Sep 22, 2023
1 parent f683495 commit 7feea69
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 @@ -259,7 +259,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 7feea69

Please sign in to comment.