RSP does not make use of the genesis state, which is parsed from JSON at runtime, costing a lot of zkVM cycles.
Switches to manually constructing ChainSpec instead.
For the block tested of 20600000, the cycle count drops from 417,218,608 to 343,651,666 by 73,566,942 cycles. The saving should be constant across all blocks as the same genesis JSON string is parsed regardless of block.
RSP does not make use of the genesis state, which is parsed from JSON at runtime, costing a lot of zkVM cycles.
Switches to manually constructing
ChainSpec
instead.For the block tested of
20600000
, the cycle count drops from417,218,608
to343,651,666
by73,566,942
cycles. The saving should be constant across all blocks as the same genesis JSON string is parsed regardless of block.