top | item 15626545 (no title) smeenai | 8 years ago clang-tidy has a struct padding check which diagnoses non-optimal struct orders, and a coworker contributed a clang tool to reorder fields: https://github.com/llvm-mirror/clang-tools-extra/tree/master... discuss order hn newest nly|8 years ago This makes sense if you're only concerned with size. Locality or eliminating false sharing may be more important in large ones
nly|8 years ago This makes sense if you're only concerned with size. Locality or eliminating false sharing may be more important in large ones
nly|8 years ago