You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace decoded Payload.Key with encoded key buffer to reduce number of allocations and avoid needlessly decoding it during EN restarts and checkpointing.
The text was updated successfully, but these errors were encountered:
Data held in RAM can be reduced by 25GB and allocations can be reduced by 803+ millions by keeping encoded Payload.Key in RAM instead of as decoded Ledger.Key:
Problem
ledger.Payload
can use less memory.Payload.Key
requires 4 allocations for any key with 3 parts.We don't use
Payload.Key
except in migration and reports so it's expensive to needlessly keep it in memory.Also,
Payload.Key
is needlessly decoded while rebuilding mtrie during EN restart as well as checkpointing.Updates #1744 #2585
The Proposed Solution
Replace decoded
Payload.Key
with encoded key buffer to reduce number of allocations and avoid needlessly decoding it during EN restarts and checkpointing.The text was updated successfully, but these errors were encountered: