From 05156442c3e020456047534d6ed5b02c92628837 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Thu, 13 Mar 2025 15:43:13 -0400 Subject: [PATCH] add comment about loop unrolling --- src/repr/board.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/repr/board.rs b/src/repr/board.rs index 6153438..0dcfc1d 100644 --- a/src/repr/board.rs +++ b/src/repr/board.rs @@ -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(¤t, 1); if current.is_empty() || !current.intersects(*opponent_board) {