Skip to content

Commit 3b76b70

Browse files
authored
Merge pull request #2360 from CortexFoundation/dev
code size config expand
2 parents bd131a1 + 28ab142 commit 3b76b70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/state/database.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ import (
3232

3333
const (
3434
// Number of codehash->size associations to keep.
35-
codeSizeCacheSize = 100000
35+
codeSizeCacheSize = 1_000_000 // 4 megabytes in total
3636

3737
// Cache size granted for caching clean code.
38-
codeCacheSize = 64 * 1024 * 1024
38+
codeCacheSize = 256 * 1024 * 1024
3939
)
4040

4141
// Database wraps access to tries and contract code.

0 commit comments

Comments
 (0)