0xMiden / 0xMiden/node

Improve node startup time

未關閉
#1,697 10 則留言 3 個 reaction 已指派 1 人 已指派給 @sergerad 在 GitHub 檢視
store
主要語言
Rust
星號
104
分支
138
平均合併
1 天 13 小時
30 天內合併 PR
56

描述

Recent testnet restarts took ~21s, of which 15s was `load_mmr` and 4s `load_smt_forest`.

Image

`load_mmr` is likely dominated by reading all block headers from the database. However, we don't actually need the entire header -- only the ordered commitments. We can improve this by storing the header fields as columns. At minimum we should store the commitment in its own field, even if we decide to keep the headers as blobs for performance in other areas.

I would also take a look at what else we are using the headers for; if there is other usage where we only require partial fields then we should consider flattening it completely.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。