484ead01ed
SlotMeta::completed_data_indexes is defined as a Vec<u32>: https://github.com/solana-labs/solana/blob/a8d78e89d/ledger/src/blockstore_meta.rs#L31-L32 which results in inefficient updates: https://github.com/solana-labs/solana/blob/a8d78e89d/ledger/src/blockstore.rs#L3245-L3326 This commit changes the type to BTreeSet<u32> for efficient and simpler updates and lookups. The change should be backward compatible because Vec<T> and BTreeSet<T> are both serialized as seq: https://github.com/serde-rs/serde/blob/ce0844b9e/serde/src/ser/impls.rs#L207-L208 https://github.com/serde-rs/serde/blob/ce0844b9e/serde/src/ser/impls.rs#L216-L217 |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
.gitignore | ||
Cargo.toml | ||
build.rs |