From: mstembera Date: Fri, 24 Feb 2017 05:33:03 +0000 (-0800) Subject: Reorder members of Material::Entry X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=f1e3dfea748eef8ba443dace21c1663ac8bd5119 Reorder members of Material::Entry This eliminates alignment padding and reduces size from 48 to 40 bytes. This makes the material HashTable smaller and more cache friendly. No functional change Closes #1013 --- diff --git a/src/material.h b/src/material.h index 9d6eed0a..ccf97b71 100644 --- a/src/material.h +++ b/src/material.h @@ -56,11 +56,11 @@ struct Entry { } Key key; - int16_t value; - uint8_t factor[COLOR_NB]; EndgameBase* evaluationFunction; EndgameBase* scalingFunction[COLOR_NB]; // Could be one for each // side (e.g. KPKP, KBPsKs) + int16_t value; + uint8_t factor[COLOR_NB]; Phase gamePhase; };