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
..
testdata
core/rawdb: avoid unnecessary receipt processing for log filtering ( #23147 )
3 years ago
accessors_chain.go
core/rawdb: fix double-lock causing hang ( #24189 )
3 years ago
accessors_chain_test.go
core, eth: improve delivery speed on header requests ( #23105 )
3 years ago
accessors_indexes.go
core/rawdb: fix logs to print block number, not address ( #23328 )
3 years ago
accessors_indexes_test.go
core/rawdb: single point of maintenance for writing and deleting tx lookup indexes ( #21480 )
4 years ago
accessors_metadata.go
eth, les: update unclean shutdown markers regularly ( #24077 )
3 years ago
accessors_snapshot.go
eth: request id dispatcher and direct req/reply APIs ( #23576 )
3 years ago
accessors_state.go
core/rawdb: fix typo ( #24289 )
3 years ago
chain_iterator.go
core, core/rawdb: fix transaction indexing ( #24024 )
3 years ago
chain_iterator_test.go
core/rawdb: fix transaction indexing/unindexing hashing error ( #22457 )
4 years ago
database.go
all: core rework for the merge transition ( #23761 )
3 years ago
database_test.go
eth/protocols/snap: generate storage trie from full dirty snap data ( #22668 )
4 years ago
freezer.go
core/rawdb: enforce readonly in freezer instantiation ( #24119 )
3 years ago
freezer_batch.go
core/rawdb: better error message in freezer ( #23901 )
3 years ago
freezer_table.go
core/rawdb: enforce readonly in freezer instantiation ( #24119 )
3 years ago
freezer_table_test.go
core/rawdb: enforce readonly in freezer instantiation ( #24119 )
3 years ago
freezer_test.go
core/rawdb: enforce readonly in freezer instantiation ( #24119 )
3 years ago
schema.go
all: core rework for the merge transition ( #23761 )
3 years ago
table.go
core, ethdb, tests, trie: implement NewBatchWithSize API for batcher ( #24392 )
3 years ago
table_test.go
all: simplify and fix database iteration with prefix/start ( #20808 )
5 years ago