solana-with-rpc-optimizations/ledger-tool
steviez 9a7b681f0c
Remove key_size() method from Column trait (#34021)
This helper simply called std::mem::size_of<Self::Index>(). However, all
of the underlying functions that create keys manually copy fields into a
byte array. The fields are copied in end-to-end whereas size_of() might
include alignment bytes.

For example, a (u64, u32) only has 12 bytes of "data", but it would
have size 16 due to the 4 alignment padding bytes that would be
added to get the u32 (size 4) aligned with the u64 (size 8).
2023-11-19 23:05:32 -06:00
..
src Remove key_size() method from Column trait (#34021) 2023-11-19 23:05:32 -06:00
tests
.gitignore
Cargo.toml Define tick related helper test methods (#33537) 2023-10-10 09:23:18 +09:00