• Péter Szilágyi's avatar
    trie: cache collapsed tries node, not rlp blobs (#16876) · d926bf2c
    Péter Szilágyi authored
    The current trie memory database/cache that we do pruning on stores
    trie nodes as binary rlp encoded blobs, and also stores the node
    relationships/references for GC purposes. However, most of the trie
    nodes (everything apart from a value node) is in essence just a
    collection of references.
    
    This PR switches out the RLP encoded trie blobs with the
    collapsed-but-not-serialized trie nodes. This permits most of the
    references to be recovered from within the node data structure,
    avoiding the need to track them a second time (expensive memory wise).
    d926bf2c
Name
Last commit
Last update
..
asm Loading commit data...
bloombits Loading commit data...
rawdb Loading commit data...
state Loading commit data...
types Loading commit data...
vm Loading commit data...
.gitignore Loading commit data...
bench_test.go Loading commit data...
block_validator.go Loading commit data...
block_validator_test.go Loading commit data...
blockchain.go Loading commit data...
blockchain_test.go Loading commit data...
blocks.go Loading commit data...
chain_indexer.go Loading commit data...
chain_indexer_test.go Loading commit data...
chain_makers.go Loading commit data...
chain_makers_test.go Loading commit data...
dao_test.go Loading commit data...
error.go Loading commit data...
events.go Loading commit data...
evm.go Loading commit data...
gaspool.go Loading commit data...
gen_genesis.go Loading commit data...
gen_genesis_account.go Loading commit data...
genesis.go Loading commit data...
genesis_alloc.go Loading commit data...
genesis_test.go Loading commit data...
headerchain.go Loading commit data...
helper_test.go Loading commit data...
mkalloc.go Loading commit data...
state_processor.go Loading commit data...
state_transition.go Loading commit data...
tx_cacher.go Loading commit data...
tx_journal.go Loading commit data...
tx_list.go Loading commit data...
tx_list_test.go Loading commit data...
tx_pool.go Loading commit data...
tx_pool_test.go Loading commit data...
types.go Loading commit data...