go-ethereum/ethdb
rjl493456442 dd202d4283
core, ethdb, triedb: add batch close (#33708)
Pebble maintains a batch pool to recycle the batch object. Unfortunately
batch object must be
explicitly returned via `batch.Close` function. This PR extends the
batch interface by adding
the close function and also invoke batch.Close in some critical code
paths.

Memory allocation must be measured before merging this change. What's
more, it's an open
question that whether we should apply batch.Close as much as possible in
every invocation.
2026-03-04 11:17:47 +01:00
..
dbtest ethdb: Implement DeleteRange in batch (#31947) 2025-06-20 19:40:41 +08:00
leveldb core, ethdb, triedb: add batch close (#33708) 2026-03-04 11:17:47 +01:00
memorydb core, ethdb, triedb: add batch close (#33708) 2026-03-04 11:17:47 +01:00
pebble core, ethdb, triedb: add batch close (#33708) 2026-03-04 11:17:47 +01:00
remotedb triedb, core/rawdb: implement the partial read in freezer (#32132) 2025-10-13 19:40:03 +08:00
batch.go core, ethdb, triedb: add batch close (#33708) 2026-03-04 11:17:47 +01:00
database.go triedb, core/rawdb: implement the partial read in freezer (#32132) 2025-10-13 19:40:03 +08:00
iterator.go all: simplify and fix database iteration with prefix/start (#20808) 2020-04-15 14:08:53 +03:00