Pieces lists are too expensive #3
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pieces lists are very expensive, both for CPU cycles and memory.
It should be replaced by an array. Obviously redundant with board itself, but faster access.
We could have for example 2 arrays, for white and black.
These arrays could be directly in position structured, or separated (allocated).
Other option: board could also be used to manage color pieces list itself (looks impractical/difficult to implement).
No more piece list with bitboard-switch branch. Master merge:
1397d61d22