Seen this on Reddit: http://www.catb.org/esr/structure-packing/
It could be useful to have in Phobos some template that given pair-name pairs (or a struct type) returns those fields in a better packed order (without using align()).
See also: https://d.puremagic.com/issues/show_bug.cgi?id=8873 Bye, bearophile