Files
solana/runtime/src
behzad nouri 3252dc7203 uses structural sharing for stake-delegations hash-map (#23585)
StakeDelegations is using Arc to implement copy-on-write semantics:
https://github.com/solana-labs/solana/blob/58c0db970/runtime/src/stake_delegations.rs#L14-L16

However a single delegation change will still clone the entire hash-map,
resulting in excessive memory use as observed in:
https://github.com/solana-labs/solana/issues/23061#issuecomment-1063444072

This commit instead uses immutable hash-map implementing structural
sharing:
> which means that if two data structures are mostly copies of each
> other, most of the memory they take up will be shared between them.
https://docs.rs/im/latest/im/
2022-03-16 12:58:05 +00:00
..
2022-02-23 18:07:00 -06:00
2022-03-09 21:33:05 -05:00
2022-01-21 19:12:57 -08:00
2022-03-09 15:33:50 -06:00
2022-02-24 17:50:58 -07:00
2022-01-20 18:11:00 -06:00
2022-03-15 17:05:41 -05:00
2022-03-08 18:28:00 -06:00