• 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
..
downloader Loading commit data...
fetcher Loading commit data...
filters Loading commit data...
gasprice Loading commit data...
tracers Loading commit data...
api.go Loading commit data...
api_backend.go Loading commit data...
api_test.go Loading commit data...
api_tracer.go Loading commit data...
backend.go Loading commit data...
bloombits.go Loading commit data...
config.go Loading commit data...
gen_config.go Loading commit data...
handler.go Loading commit data...
handler_test.go Loading commit data...
helper_test.go Loading commit data...
metrics.go Loading commit data...
peer.go Loading commit data...
protocol.go Loading commit data...
protocol_test.go Loading commit data...
sync.go Loading commit data...
sync_test.go Loading commit data...