Skip to content

Commit

Permalink
perf: Increase noncecache in MessagePool
Browse files Browse the repository at this point in the history
  • Loading branch information
fridrik01 committed Apr 20, 2023
1 parent d4e0057 commit d63ddec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chain/messagepool/messagepool.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ func (ms *msgSet) toSlice() []*types.SignedMessage {
func New(ctx context.Context, api Provider, ds dtypes.MetadataDS, us stmgr.UpgradeSchedule, netName dtypes.NetworkName, j journal.Journal) (*MessagePool, error) {
cache, _ := lru.New2Q[cid.Cid, crypto.Signature](build.BlsSignatureCacheSize)
verifcache, _ := lru.New2Q[string, struct{}](build.VerifSigCacheSize)
noncecache, _ := lru.New[nonceCacheKey, uint64](256)
noncecache, _ := lru.New[nonceCacheKey, uint64](32768) // 32k * ~100 bytes = 3MB
keycache, _ := lru.New[address.Address, address.Address](1_000_000)

cfg, err := loadConfig(ctx, ds)
Expand Down

0 comments on commit d63ddec

Please sign in to comment.