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
When profiling the following: adding all blocks from disk as fast as possible with block validation disabled, the LedgerDB appeared at the top of the heap/performance profile output.
I suspect it is due to the structure of the LedgerDB: it is essentially a list with a spine that is k elements long, that is traversed and reallocated each time a block is added. Instead of storing kSkip elements in the list, one Skip k element could be stored, bringing down the cost significantly.
The text was updated successfully, but these errors were encountered:
It's not quite so easy, the Skip nodes do record information (they store references to the blocks that were applied there). We could avoid storing that information, at the cost of introducing more dependency between the LedgerDB and the volatile DB.
However, we can address this in quite a different way. Will open a separate ticket.
When profiling the following: adding all blocks from disk as fast as possible with block validation disabled, the LedgerDB appeared at the top of the heap/performance profile output.
I suspect it is due to the structure of the LedgerDB: it is essentially a list with a spine that is
k
elements long, that is traversed and reallocated each time a block is added. Instead of storingk
Skip
elements in the list, oneSkip k
element could be stored, bringing down the cost significantly.The text was updated successfully, but these errors were encountered: