Skip to content

consolidate prev_board from 4 arrays to 1#20

Merged
andy-k merged 1 commit intomainfrom
consolidate-prev-board
Mar 28, 2026
Merged

consolidate prev_board from 4 arrays to 1#20
andy-k merged 1 commit intomainfrom
consolidate-prev-board

Conversation

@andy-k
Copy link
Copy Markdown
Owner

@andy-k andy-k commented Mar 28, 2026

Summary

  • Replace 4 separate prev_board arrays (900 bytes) with 1 shared prev_board_tiles array (225 bytes)
  • Compute dirty_rows and dirty_cols bitmasks in a single O(r*c) pass over board_tiles
  • Update prev_board once after all cross set and extension set processing

Test plan

  • movegen baseline unchanged
  • cargo fmt, clippy, build pass

Replace 4 separate prev_board arrays (900 bytes) with 1 shared
prev_board_tiles array (225 bytes). Compute dirty_rows and
dirty_cols bitmasks in a single O(r*c) pass over board_tiles.
Update prev_board once after all cross set and extension set
processing.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@andy-k andy-k merged commit e16ece1 into main Mar 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant