mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-04 10:25:04 +00:00
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. |
||
|---|---|---|
| .. | ||
| dbtest | ||
| leveldb | ||
| memorydb | ||
| pebble | ||
| remotedb | ||
| batch.go | ||
| database.go | ||
| iterator.go | ||