Skip to content

Realistic maximum size of merkle trie #1898

Answered by jochem-brouwer
faustbrian asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not entirely sure if I understand the question but this might help:

The tree will get slower and slower over time once the tree gets bigger. The reason for this is that on an empty trie, you can immediately write a key/value. This only hits the disk once. However, if the tree grows bigger, then more disk reads/writes have to be done. Assuming you are using 32 bytes for keys, the max depth of the tree will be 64, so this means that once you are writing these accounts, then the disk has to be read/written 64 times.

If you have two trees with a different root, and the MPT points to the same DB, then "copying" the root from one tree to the other is a single operation: you can immediately …

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@faustbrian
Comment options

@jochem-brouwer
Comment options

@holgerd77
Comment options

@faustbrian
Comment options

@holgerd77
Comment options

Answer selected by faustbrian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants