From a2f5e79abafb65765ffa60c9d3ae1121cc74780d Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Thu, 27 Feb 2025 21:07:07 -0500 Subject: [PATCH] add comment regarding CoordPair performance --- src/repr/coords.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/repr/coords.rs b/src/repr/coords.rs index f622aeb..11b9f97 100644 --- a/src/repr/coords.rs +++ b/src/repr/coords.rs @@ -7,6 +7,7 @@ use static_assertions::const_assert; // performance by about 1-2% overall pub type CoordAxis = u8; +// using u8 for this results in a ~3-6% perf increase pub type CoordPairInner = u8; const_assert!(CoordPairInner::MAX as usize >= Board::BOARD_AREA as usize);