3 ms·
Can go structs be nested by value? (As opposed to by reference) I'd imagine that this could be a very practical way to to do a manual hot/cold grouping in an e
by usrusr 5y ago
Can go structs be nested by value? (As opposed to by reference)
I'd imagine that this could be a very practical way to to do a manual hot/cold grouping in an environment that prioritizes packing over keeping order. (if the cold ones are particularly cold you might of course prefer them to be in a by reference nested struct anyways, so the hot subset packs better with their peers in an array)