go-ethereum/core
Martin Holst Swende b44f24e3e6
core, trie: speed up some tests with quadratic processing flaw (#21987)
This commit fixes a flaw in two testcases, and brings down the exec-time from ~40s to ~8s for trie/TestIncompleteSync.

The checkConsistency was performed over and over again on the complete set of nodes, not just the recently added, turning it into a quadratic runtime.
2020-12-10 14:48:32 +01:00
..
asm
bloombits
forkid
rawdb
state core, trie: speed up some tests with quadratic processing flaw (#21987) 2020-12-10 14:48:32 +01:00
types
vm
.gitignore
bench_test.go
block_validator_test.go
block_validator.go
blockchain_insert.go
blockchain_repair_test.go
blockchain_sethead_test.go
blockchain_snapshot_test.go
blockchain_test.go
blockchain.go
blocks.go
chain_indexer_test.go
chain_indexer.go
chain_makers_test.go
chain_makers.go
dao_test.go
error.go
events.go
evm.go
gaspool.go
gen_genesis_account.go
gen_genesis.go
genesis_alloc.go
genesis_test.go
genesis.go
headerchain_test.go
headerchain.go
mkalloc.go
rlp_test.go
state_prefetcher.go
state_processor_test.go
state_processor.go
state_transition.go
tx_cacher.go
tx_journal.go
tx_list_test.go
tx_list.go
tx_noncer.go
tx_pool_test.go
tx_pool.go
types.go