From f1e3dfea748eef8ba443dace21c1663ac8bd5119 Mon Sep 17 00:00:00 2001 From: mstembera Date: Thu, 23 Feb 2017 21:33:03 -0800 Subject: [PATCH] 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 --- src/material.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }; -- 2.39.2