From ab2a507f5ccf790112de33f66af213049db1a863 Mon Sep 17 00:00:00 2001 From: bendanzhentan <136774549+bendanzhentan@users.noreply.github.com> Date: Wed, 27 Sep 2023 19:14:15 +0800 Subject: [PATCH] perf: reduce quarantine eviction (#29) --- op-node/p2p/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op-node/p2p/sync.go b/op-node/p2p/sync.go index ab2b8f4629..f3356fe5b7 100644 --- a/op-node/p2p/sync.go +++ b/op-node/p2p/sync.go @@ -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