solana/runtime
behzad nouri e1793e5a13
caches vote-state de-serialized from vote accounts (#13795)
Gossip and other places repeatedly de-serialize vote-state stored in
vote accounts. Ideally the first de-serialization should cache the
result.

This commit adds new VoteAccount type which lazily de-serializes
VoteState from Account data and caches the result internally.

Serialize and Deserialize traits are manually implemented to match
existing code. So, despite changes to frozen_abi, this commit should be
backward compatible.
2020-11-30 17:18:33 +00:00
..
benches shares the lock on gossip when processing prune messages (#13339) 2020-11-05 15:42:00 +00:00
src caches vote-state de-serialized from vote accounts (#13795) 2020-11-30 17:18:33 +00:00
store-tool Add store-tool (#13254) 2020-11-01 09:41:28 -08:00
tests Fix slow/stuck unstaking due to toggling in epoch (#13501) 2020-11-11 14:11:57 -07:00
.gitignore Revert "Rename solana-runtime to sealevel (#6239)" (#6247) 2019-10-04 19:33:29 -06:00
Cargo.toml Fix potential undefined behavior (#13555) 2020-11-13 18:12:41 +09:00
build.rs Remove frozen ABI modules from solana-sdk 2020-10-20 16:11:30 -07:00