Official Go implementation of the Ethereum protocol
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Martin HS
d3cc618951
trie: reduce allocations in stacktrie (#30743)
This PR uses various tweaks and tricks to make the stacktrie near
alloc-free.
```
[user@work go-ethereum]$ benchstat stacktrie.1 stacktrie.7
goos: linux
goarch: amd64
pkg: github.com/ethereum/go-ethereum/trie
cpu: 12th Gen Intel(R) Core(TM) i7-1270P
│ stacktrie.1 │ stacktrie.7 │
│ sec/op │ sec/op vs base │
Insert100K-8 106.97m ± 8% 88.21m ± 34% -17.54% (p=0.000 n=10)
│ stacktrie.1 │ stacktrie.7 │
│ B/op │ B/op vs base │
Insert100K-8 13199.608Ki ± 0% 3.424Ki ± 3% -99.97% (p=0.000 n=10)
│ stacktrie.1 │ stacktrie.7 │
│ allocs/op │ allocs/op vs base │
Insert100K-8 553428.50 ± 0% 22.00 ± 5% -100.00% (p=0.000 n=10)
```
Also improves derivesha:
```
goos: linux
goarch: amd64
pkg: github.com/ethereum/go-ethereum/core/types
cpu: 12th Gen Intel(R) Core(TM) i7-1270P
│ derivesha.1 │ derivesha.2 │
│ sec/op │ sec/op vs base │
DeriveSha200/stack_trie-8 477.8µ ± 2% 430.0µ ± 12% -10.00% (p=0.000 n=10)
│ derivesha.1 │ derivesha.2 │
│ B/op │ B/op vs base │
DeriveSha200/stack_trie-8 45.17Ki ± 0% 25.65Ki ± 0% -43.21% (p=0.000 n=10)
│ derivesha.1 │ derivesha.2 │
│ allocs/op │ allocs/op vs base │
DeriveSha200/stack_trie-8 1259.0 ± 0% 232.0 ± 0% -81.57% (p=0.000 n=10)
```
---------
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
|
1 week ago |
.. |
trienode
|
ethdb: add DeleteRange feature (#30668)
|
3 months ago |
utils
|
trie/utils: ensure master can generate a correct genesis for kaustinen7 (#30856)
|
2 months ago |
bytepool.go
|
trie: reduce allocations in stacktrie (#30743)
|
1 week ago |
committer.go
|
trie: concurrent commit (#30545)
|
4 months ago |
database_test.go
|
core, trie, triedb: minor changes from snapshot integration (#30599)
|
3 months ago |
encoding.go
|
trie: reduce allocations in stacktrie (#30743)
|
1 week ago |
encoding_test.go
|
trie: reduce allocs in recHash (#27770)
|
1 year ago |
errors.go
|
all: fix various typos (#29600)
|
9 months ago |
hasher.go
|
trie: reduce allocations in stacktrie (#30743)
|
1 week ago |
iterator.go
|
trie: iterate values pre-order and fix seek behavior (#27838)
|
8 months ago |
iterator_test.go
|
core, trie, triedb: minor changes from snapshot integration (#30599)
|
3 months ago |
node.go
|
trie: reduce allocations in stacktrie (#30743)
|
1 week ago |
node_enc.go
|
trie: reduce allocations in stacktrie (#30743)
|
1 week ago |
node_test.go
|
trie: improve node rlp decoding performance (#25357)
|
2 years ago |
proof.go
|
trie: combine validation loops in VerifyRangeProof (#30823)
|
2 months ago |
proof_test.go
|
all: fix mismatched names in comments (#29348)
|
10 months ago |
secure_trie.go
|
core, trie, triedb: minor changes from snapshot integration (#30599)
|
3 months ago |
secure_trie_test.go
|
core/state, eth/protocols, trie, triedb/pathdb: remove unused error from trie Commit (#29869)
|
8 months ago |
stacktrie.go
|
trie: reduce allocations in stacktrie (#30743)
|
1 week ago |
stacktrie_fuzzer_test.go
|
core/state, eth/protocols, trie, triedb/pathdb: remove unused error from trie Commit (#29869)
|
8 months ago |
stacktrie_test.go
|
trie: reduce allocations in stacktrie (#30743)
|
1 week ago |
sync.go
|
trie: update the `valid` function comments (#29809)
|
8 months ago |
sync_test.go
|
core, trie, triedb: minor changes from snapshot integration (#30599)
|
3 months ago |
tracer.go
|
trie, consensus/clique: use maps.Clone (#29616)
|
9 months ago |
tracer_test.go
|
core/state, eth/protocols, trie, triedb/pathdb: remove unused error from trie Commit (#29869)
|
8 months ago |
trie.go
|
trie: replace custom logic with bytes.HasPrefix (#30771)
|
2 months ago |
trie_id.go
|
cmd, core, eth, les, light: track deleted nodes (#25757)
|
2 years ago |
trie_reader.go
|
triedb/pathdb: configure different node hasher in pathdb (#31008)
|
3 weeks ago |
trie_test.go
|
ethdb: add DeleteRange feature (#30668)
|
3 months ago |
verkle.go
|
core, trie: verkle state processor tests (#30672)
|
3 months ago |
verkle_test.go
|
trie/utils: ensure master can generate a correct genesis for kaustinen7 (#30856)
|
2 months ago |