forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds shared variant to shred payload type (#4696)
After signature verification shreds payloads are concurrently sent to window-service to be deserialized and inserted into blockstore, while their payload is also sent to retransmit-stage to be further propagated: https://github.com/anza-xyz/agave/blob/7d8cdd9d3/turbine/src/sigverify_shreds.rs#L242-L243 Similarly, when shreds are recovered from the erasure codes, they are concurrently inserted into blockstore, while their payload is sent to retransmit-stage: https://github.com/anza-xyz/agave/blob/7d8cdd9d3/ledger/src/blockstore.rs#L1024-L1035 Having a shred::Payload variant which allows to share the payload between the two concurrent paths will allow to reduce allocations and memcopies.
- Loading branch information
1 parent
5b7ebfb
commit bdece2e
Showing
3 changed files
with
60 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters