Summary
During parachain bootstrap, the sequence is:
- Download
:code + :heappages storage proof
- Compile WASM runtime (~200-300ms)
- Download
AuraApi_slot_duration call proof
- Download
AuraApi_authorities call proof
- Execute Aura calls against compiled VM
Steps 3-4 don't depend on the compiled VM — only step 5 does. Start all three P2P requests (storage proof + both call proofs) in parallel. Compile while Aura proofs arrive. Then execute.
On cold start this saves 1-2 seconds because compilation and network fetches are no longer sequential.
Depends on
Parallelize Aura call proofs first (simpler change, same area of code).
Summary
During parachain bootstrap, the sequence is:
:code+:heappagesstorage proofAuraApi_slot_durationcall proofAuraApi_authoritiescall proofSteps 3-4 don't depend on the compiled VM — only step 5 does. Start all three P2P requests (storage proof + both call proofs) in parallel. Compile while Aura proofs arrive. Then execute.
On cold start this saves 1-2 seconds because compilation and network fetches are no longer sequential.
Depends on
Parallelize Aura call proofs first (simpler change, same area of code).