77c8372cc4
* feature: do trie prefetch on state prefetch Currently, state prefetch just pre execute the transactions and discard the results. It is helpful to increase the snapshot cache hit rate. It would be more helpful, if it can do trie prefetch at the same time, since the it will preload the trie node and build the trie tree in advance. This patch is to implement it, by reusing the main trie prefetch and doing finalize after transaction is executed. * some code improvements for trie prefetch ** increase pendingSize before dispatch tasks ** use throwaway StateDB for TriePrefetchInAdvance and remove the prefetcherLock ** remove the necessary drain operation in trie prefetch mainloop, trie prefetcher won't be used after close. |
||
---|---|---|
.. | ||
pruner | ||
snapshot | ||
access_list.go | ||
database.go | ||
dump.go | ||
iterator_test.go | ||
iterator.go | ||
journal.go | ||
shared_pool.go | ||
state_object_test.go | ||
state_object.go | ||
state_test.go | ||
statedb_test.go | ||
statedb.go | ||
sync_test.go | ||
sync.go | ||
trie_prefetcher_test.go | ||
trie_prefetcher.go |