mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
e50110562a
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. |
||
---|---|---|
.. | ||
database_test.go | ||
mapmutation.go | ||
mutation.go | ||
object_db.go | ||
tx_db.go |