erigon-pulse/ethdb/olddb
hexoscott e50110562a
revert execution batch size logic to size on disk (#5732)
Revert to older batch size logic to keep memory usage down during
execution phase and closer to the --batchSize flag size.

Spotted a "leak" in key generation as well. The unsafe pointer keeps the
byte slice around for as long as the batch is not committed, takes up a
fair chunk of memory surprisingly doing that so removed the unsafe
pointer usage giving the GC some chance to clean up along the way.

Moved the batch rollback into a defer func call rather than allowing
them to stack in the for loop. If this isn't going to work just let me
know and can change it back.
2022-10-13 09:10:26 +01:00
..
database_test.go kv.Del() remove second parameter (#4832) 2022-07-26 12:47:05 +07:00
mapmutation.go revert execution batch size logic to size on disk (#5732) 2022-10-13 09:10:26 +01:00
mutation.go go1.19 gofmt (#4988) 2022-08-10 19:04:13 +07:00
object_db.go go1.19 gofmt (#4988) 2022-08-10 19:04:13 +07:00
tx_db.go go1.19 gofmt (#4988) 2022-08-10 19:04:13 +07:00