nimbus-eth1/tests/test_aristo
Jacek Sieka 81e75622cf
storage: store root id together with vid, for better locality of refe… (#2449)
The state and account MPT:s currenty share key space in the database
based on that vertex id:s are assigned essentially randomly, which means
that when two adjacent slot values from the same contract are accessed,
they might reside at large distance from each other.

Here, we prefix each vertex id by its root causing them to be sorted
together thus bringing all data belonging to a particular contract
closer together - the same effect also happens for the main state MPT
whose nodes now end up clustered together more tightly.

In the future, the prefix given to the storage keys can also be used to
perform range operations such as reading all the storage at once and/or
deleting an account with a batch operation.

Notably, parts of the API already supported this rooting concept while
parts didn't - this PR makes the API consistent by always working with a
root+vid.
2024-07-04 15:46:52 +02:00
..
sample0.txt.gz Remove obsolete tests (#2307) 2024-06-06 09:29:38 +00:00
sample1.txt.gz Remove obsolete tests (#2307) 2024-06-06 09:29:38 +00:00
sample2.txt.gz Remove obsolete tests (#2307) 2024-06-06 09:29:38 +00:00
sample3.txt.gz Remove obsolete tests (#2307) 2024-06-06 09:29:38 +00:00
test_filter.nim storage: store root id together with vid, for better locality of refe… (#2449) 2024-07-04 15:46:52 +02:00
test_helpers.nim Use `Hash256` directly for account path (#2439) 2024-07-03 10:14:26 +02:00
test_misc.nim Remove vid recycling feature (#2294) 2024-06-04 15:05:13 +00:00
test_samples_xx.nim Remove obsolete tests (#2307) 2024-06-06 09:29:38 +00:00
test_tx.nim storage: store root id together with vid, for better locality of refe… (#2449) 2024-07-04 15:46:52 +02:00