Parent: #1035
Task description
chain_index::tests::proptest_blockgen::make_chain takes ~10.285 s under cargo nextest run on commit cd5d8adc (speed_up_unit_tests). Alongside sync_blocks_after_startup, this test dominates the unit-test wall clock.
Location
packages/zaino-state/src/chain_index/tests/proptest_blockgen.rs:357
Context
Recent commits on this branch already reduced the cost of this file substantially:
cd5d8adc — memoize best_branch and add a tx-hash index in ProptestMockchain
ef6a4a5c — lower ProptestMockchain delay from 1 s to 100 ms
Further work is needed before this test belongs in the hot unit-test loop.
Acceptance criteria
Area
Testing / CI, chain_index
Parent: #1035
Task description
chain_index::tests::proptest_blockgen::make_chaintakes ~10.285 s undercargo nextest runon commitcd5d8adc(speed_up_unit_tests). Alongsidesync_blocks_after_startup, this test dominates the unit-test wall clock.Location
packages/zaino-state/src/chain_index/tests/proptest_blockgen.rs:357Context
Recent commits on this branch already reduced the cost of this file substantially:
cd5d8adc— memoizebest_branchand add a tx-hash index inProptestMockchainef6a4a5c— lowerProptestMockchaindelay from 1 s to 100 msFurther work is needed before this test belongs in the hot unit-test loop.
Acceptance criteria
make_chainto identify remaining hot spots (mockchain setup? block generation? state-machine transitions?)get_mempool_stream_correct_expected_chain_tipandget_mempool_stream_for_stale_snapshotArea
Testing / CI, chain_index