Why PIECE_TYPE_NB = 8 ? #5051
vincentbab
started this conversation in
General
Replies: 1 comment 1 reply
-
|
It's used to initialize some 2D array sizes which are more efficient to index when they are powers of two. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I came across this code in
types.h:I wonder why
PIECE_TYPE_NB = 8while7would be enough ? This could be a tiny improvement in performance (but maybe too small for elo increase). Nonetheless it seems better to not waste memory :)What do you guys think ?
Beta Was this translation helpful? Give feedback.
All reactions