]> git.sesse.net Git - stockfish/commit
Compact position structures
authorGuy Vreuls <guyvreuls@gmail.com>
Fri, 21 May 2021 18:22:29 +0000 (20:22 +0200)
committerStéphane Nicolet <cassio@free.fr>
Fri, 21 May 2021 22:26:00 +0000 (00:26 +0200)
commitf233ca1af4d36ded8ce924131f42bc4d0093ec6e
treefc3923035ffa27e61eb4bce97af755e735cbe1a2
parent754fc8a8b5ca7466926d54465eeb1df4d4a481ac
Compact position structures

Reorder the structures data members in position.h to reduce padding.

Passed STC:
https://tests.stockfishchess.org/tests/view/60a8011fce8ea25a3ef04069
LLR: 2.94 (-2.94,2.94) <-0.50,2.50>
Total: 14120 W: 1214 L: 1067 D: 11839
Ptnml(0-2): 26, 857, 5161, 976, 40

---

Also tested for speed locally by Joost:

Result of  50 runs
==================
base (./stockfish.master       ) =    2254919  +/- 4439
test (./stockfish.patch        ) =    2274003  +/- 5278
diff                             =     +19084  +/- 6386
==================
speedup        = +0.0085
P(speedup > 0) =  1.0000

---

closes https://github.com/official-stockfish/Stockfish/pull/3488

No functional change.
src/position.h