add comment about loop unrolling
This commit is contained in:
parent
8445a750c9
commit
05156442c3
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user