solana-with-rpc-optimizations/ledger
steviez 206a1c7296
Reduce the amount of IO that LedgerCleanupService performs (#29239)
Currently, the cleanup service counts the number of shreds in the
database by iterating the entire SlotMeta column and reading the number
of received shreds for each slot. This gives us a fairly accurate count
at the expense of performing a good amount of IO.

Instead of counting the individual slots, use the live_files()
rust-rocksdb entrypoint that we expose in Blockstore. This API allows us
to get the number of entries (shreds) in the data shred column family by
reading file metadata. This is much more efficient from IO perspective.
2023-01-23 04:39:47 -06:00
..
benches clippy for rust 1.65.0 (#28765) 2022-11-09 19:39:38 +00:00
src Reduce the amount of IO that LedgerCleanupService performs (#29239) 2023-01-23 04:39:47 -06:00
tests fix typo in shred.rs (#29149) 2022-12-15 01:14:39 -06:00
.gitignore
Cargo.toml chore: bump test-case from 2.1.0 to 2.2.2 (#28184) 2022-12-13 16:07:50 +00:00
build.rs