You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit adds a cache for looking up block messages in a
tipset. This should improve performance for quite a few lotus
APIs, including:
- The Eth API block accesses.
- Fee history.
- Tipset message counts
- StateListMessages
- (and likely more)
Fixes: #10519
Is this really worth doing? Just based on some quick metrics, this method is currently taking 25ms on average (on my desktop). With this optimization, it falls to 3-5 ms.
Right now, resolving the messages in a tipset requires quite a few state loads. We can add a cache in the ChainStore’s
BlockMsgsForTipset
method. This is probably the biggest “win” as the cache should be trivial and should speed up quite a few lotus APIs.
This will optimize:
The text was updated successfully, but these errors were encountered: