awavauatush @ninjawedding
the best thing about systems languages is they get you into that frame of mind where you're like "is 16 bytes per item too big"

and by best I mean I wish I could stop thinking about it
· Web · 2 · 6

@ninjawedding hm, i've felt that way forever, but i started in assembly in the early 80s :(

@wohali it first hit me when I learned how small cache lines are relative to common quantities and since then I've been irrationally hooked on trying to get things smaller

@ninjawedding When I found out how big the tag for tagged enums in Rust is, I felt a bit offended. It's like 8 bytes or something nuts.

@CharredStencil huh, thanks for the tip! I need to look that up myself

(reminds me: I also need to look into the space overhead for libc++ and libstdc++ std::variant)

@ninjawedding I was wrong, it's only 4 bytes.

But that can still add up for small payloads.

reddit.com/r/rust/comments/229

"It's 4 extra bytes (rather than just one) due to padding to ensure correct alignment."