Optimizing Rust Struct Size
https://camlorn.net/posts/April 2017/rust-struct-field-reordering.html (an optimisation that's not possible in C, because it would break ABI!)
Today I learnt that Cell<T> has the size of a pointer (i.e. probably 64 bits) in Rust, regardless of the size of T.
It's a common pattern for making struct fields mutable, but the T isn't actually stored inside the struct.
Wilfred Hughes
Shared words: Rust, Struct, Size, field
Score: 124.4
A deep dive on ABI design tradeoffs, and how Swift approached the problems in this space;
https://gankra.github.io/blah/swift-abi/
(Compared with C++/Rust, it avoids monomorphisation and does more boxing, with attention to details that affect performance)