Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
move notice
Browse files Browse the repository at this point in the history
  • Loading branch information
dvush committed Nov 18, 2024
1 parent 5d0da73 commit a049c81
Show file tree
Hide file tree
Showing 22 changed files with 1 addition and 85,464 deletions.
4,477 changes: 0 additions & 4,477 deletions Cargo.lock

This file was deleted.

55 changes: 0 additions & 55 deletions Cargo.toml

This file was deleted.

27 changes: 1 addition & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1 @@
This library is useful when you need to calculate Ethereum root hash many times on top of the same parent block using reth database.

To use this, for each parent block:
* create `SparseTrieSharedCache`
* call `calculate_root_hash_with_sparse_trie` with the given cache, reth db view and execution outcome.


### Speedup example.

* block 20821340
* machine with 64 cores, Samsung 980Pro SSD

We calculate root hash of some specific blocks in a loop using the same changes.
This implemenation caches only disk access, all storage and main trie hashes are calculated fully on each iteration.

```
reth parallel root hash:
first iteraton : 220 ms
next iterations: 140 ms (median, stable)
eth-sparse-mpt:
first iteraton : 225 ms
next iterations: 5.1 ms (median, stable)
```
This repository was moved to https://github.com/flashbots/rbuilder
Loading

0 comments on commit a049c81

Please sign in to comment.