0xMiden / 0xMiden/node

Improve node startup time

オープン
#1,697 コメント 10 件 リアクション 3 件 担当者 1 名 @sergerad に割り当て済み GitHub で見る
store
主要言語
Rust
スター
104
フォーク
138
平均マージ
1日 13時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。