add comment about loop unrolling

This commit is contained in:
Simon Gardling 2025-03-13 15:43:13 -04:00
parent 8445a750c9
commit 05156442c3
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -291,6 +291,8 @@ impl Board {
let mut temp_flips = BitBoard::new();
// Expand in direction until edge or non-opponent piece
// PERF! tested unrolling this loop using `const_for`
// resulted in a 9% slowdown
loop {
current = $dir(&current, 1);
if current.is_empty() || !current.intersects(*opponent_board) {