solana/runtime/src/serde_snapshot
Lijun Wang 269d995832
Make account shrink configurable #17544 (#17778)
1. Added both options for measuring space usage using total accounts usage and for individual store shrink ratio using an enum. Validator CLI options: --accounts-shrink-optimize-total-space and --accounts-shrink-ratio
2. Added code for selecting candidates based on total usage in a separate function select_candidates_by_total_usage
3. Added unit tests for the new functions added
4. The default implementations is kept at 0.8 shrink ratio with --accounts-shrink-optimize-total-space set to true

Fixes #17544
2021-06-09 21:21:32 -07:00
..
common.rs Fold bank serialisation into serde snapshot (#10581) 2020-07-13 23:00:59 +09:00
future.rs replace Ancestors HashMap for performance (#16477) 2021-05-20 10:11:56 -05:00
tests.rs Make account shrink configurable #17544 (#17778) 2021-06-09 21:21:32 -07:00
utils.rs Remove frozen ABI modules from solana-sdk 2020-10-20 16:11:30 -07:00