Skip to content

Precompute board color coordinates - #25

Merged
dschafer merged 1 commit into
mainfrom
precompute-board-color-coordinates
Aug 3, 2026
Merged

Precompute board color coordinates#25
dschafer merged 1 commit into
mainfrom
precompute-board-color-coordinates

Conversation

@dschafer

@dschafer dschafer commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Store a fixed reverse index from each SquareColor to its CoordSet so board construction and repeated region lookups avoid full-board scans.

A repeated 500-sample Criterion comparison against origin/main measures the BoardConstruction cases 28.9% faster for LinkedIn1 and 7.1% faster for GameOfCrowns1.

Store a fixed reverse index from each SquareColor to its CoordSet so board construction and repeated region lookups avoid full-board scans.

A repeated 500-sample Criterion comparison against origin/main measures the BoardConstruction cases 28.9% faster for LinkedIn1 and 7.1% faster for GameOfCrowns1.
@dschafer
dschafer merged commit 8b8510e into main Aug 3, 2026
1 check passed
@dschafer
dschafer deleted the precompute-board-color-coordinates branch August 3, 2026 00:13
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