Messagepool lower priority optimizations #10597
Labels
area/messages
kind/feature
Kind: Feature
need/team-input
Hint: Needs Team Input
P2
P2: Should be resolved
Milestone
What is the motivation behind this feature request? Is your feature request related to a problem? Please describe.
related to issue #10561
perf: message pool: change locks to RWMutexes for performance #10561
are the following issues that were identified that are to be added in a future pull request. The motivation for the two separate PRs is to isolate the threading changes as much as possible for correctness reasons.chain/messagepool/check.go
pre-allocate the size of the array msgs array usingmsgs = make([]*types.Message, 0, len(mset.msgs))
mp.keyCache.Add(ka, ka)
by checking that the address is a robust addressmoving the sixth item to its own issue for further discussion:
#10692
The text was updated successfully, but these errors were encountered: