Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
chore(chain): reduce cache sizes to improve memory usage
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear committed Jan 22, 2024
1 parent d58ba10 commit 71e97b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eth/core/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ import (
"github.com/ethereum/go-ethereum/trie"
)

// By default we are storing up to 1024 items in each cache.
const defaultCacheSize = 1024
// By default we are storing up to 512 items in each cache.
const defaultCacheSize = 512

// Compile-time check to ensure that `blockchain` implements the `Blockchain` api.
var _ Blockchain = (*blockchain)(nil)
Expand Down

0 comments on commit 71e97b3

Please sign in to comment.