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.
rjl493456442
4d086430bd
core, ethdb, tests, trie: implement NewBatchWithSize API for batcher ( #24392 )
...
This PR adds an addtional API called `NewBatchWithSize` for db
batcher. It turns out that leveldb batch memory allocation is
super inefficient. The main reason is the allocation step of
leveldb Batch is too small when the batch size is large. It can
take a few second to build a leveldb batch with 100MB size.
Luckily, leveldb also offers another API called MakeBatch which can
pre-allocate the memory area. So if the approximate size of batch is
known in advance, this API can be used in this case.
It's needed in new state scheme PR which needs to commit a batch of
trie nodes in a single batch. Implement the feature in a seperate PR.
3 years ago
..
committer.go
core, light, tests, trie: add state metrics ( #23433 )
3 years ago
database.go
trie: fix typos ( #23768 )
3 years ago
database_test.go
trie: there's no point in retrieving the metaroot
6 years ago
encoding.go
trie: use stacktrie for Derivesha operation ( #21407 )
4 years ago
encoding_test.go
trie: use stacktrie for Derivesha operation ( #21407 )
4 years ago
errors.go
trie: more node iterator improvements ( #14615 )
8 years ago
hasher.go
trie: polishes to trie committer ( #21351 )
4 years ago
iterator.go
trie: use keyvalue reader for non-mutating methods ( #24221 )
3 years ago
iterator_test.go
core, ethdb, tests, trie: implement NewBatchWithSize API for batcher ( #24392 )
3 years ago
node.go
cmd, core, eth, trie: get rid of trie cache generations ( #19262 )
6 years ago
node_test.go
add node.go unit test file node_test.go ( #20028 )
5 years ago
proof.go
trie: fix range prover ( #24266 )
3 years ago
proof_test.go
trie: test for edgecase in VerifyRangeProof ( #24257 )
3 years ago
secure_trie.go
core/state: move state account to core/types + abstracted "write account to trie" ( #23567 )
3 years ago
secure_trie_test.go
cmd, core, eth, trie: get rid of trie cache generations ( #19262 )
6 years ago
stacktrie.go
trie: simplify StackTrie implementation ( #23950 )
3 years ago
stacktrie_test.go
trie: more tests for stacktrie ( #23936 )
3 years ago
sync.go
Merge pull request #24117 from holiman/db_has
3 years ago
sync_test.go
core, eth, les, trie: remove the sync bloom, used by fast sync
3 years ago
trie.go
eth/protocols/snap, trie: better error-handling ( #23657 )
3 years ago
trie_test.go
core, ethdb, tests, trie: implement NewBatchWithSize API for batcher ( #24392 )
3 years ago