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
Turn block heights list into ranges to load more at once from storage. (#4881)
Backport of #4880.
## Motivation
When handling a chain info query asking for sender certificate hashes,
we currently load those hashes from the chain state view one by one:
`chain.block_hashes(height..=height).await?`. In most cases, the block
heights are actually contiguous.
## Proposal
Turn the list into an equivalent list of ranges, and load each range at
once.
## Test Plan
CI should catch any regressions. We should find a way to try out if this
improves performance, or even addresses the problems on the testnet.
## Release Plan
- These changes should
- be released in a new SDK,
- be released in a validator hotfix.
## Links
- PR to main: #4880
- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
0 commit comments