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
Avoid loading empty outboxes when creating network actions. (#4119)
## Motivation
In #3989 I had to
remove the code that deletes empty outboxes. However, we can actually
still do that in some cases, and we can keep a separate list of nonempty
outboxes to avoid reading empty ones.
## Proposal
Delete empty outboxes if that outbox is not ahead of chain execution.
Keep a list of nonempty outboxes in the chain state to avoid loading
empty ones.
## Test Plan
This improved the benchmark for me again:
```
same_chain_native_token_transfers
time: [152.54 ms 155.17 ms 158.41 ms]
change: [-27.026% -24.383% -21.712%] (p = 0.00 < 0.05)
Performance has improved.
```
CI should catch regressions.
## Release Plan
- Nothing to do / These changes follow the usual release cycle.
## Links
- Closes#4064.
- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
0 commit comments