Pieces lists are too expensive #3

Closed
opened 2021-11-15 11:08:54 +01:00 by bruno · 1 comment
Owner

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).

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).
bruno added the
enhancement
label 2021-11-15 11:08:54 +01:00
bruno self-assigned this 2021-11-15 11:08:54 +01:00
bruno closed this issue 2021-11-19 12:20:04 +01:00
bruno reopened this issue 2021-11-19 12:39:39 +01:00
Author
Owner

No more piece list with bitboard-switch branch. Master merge: 1397d61d22

No more piece list with [bitboard-switch branch](https://git.raoult.com/bruno/brchess/src/branch/bitboard-switch). Master merge: 1397d61d22
bruno closed this issue 2024-03-21 09:29:20 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bruno/brchess#3
No description provided.