From 9aca6a7b233ce1d00544938d0f969b67cbda9223 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Thu, 18 Sep 2008 05:42:12 +0200 Subject: [PATCH] board_group_rmlib(): Do not call refill when we have too little liberties This largely restores the optimization gains. :-) --- board.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board.c b/board.c index 1bc366b..7129b80 100644 --- a/board.c +++ b/board.c @@ -418,7 +418,8 @@ board_group_rmlib(struct board *board, group_t group, coord_t coord) assert(GROUP_REFILL_LIBS > 1); if (gi->libs > GROUP_REFILL_LIBS) return; - board_group_find_extra_libs(board, group, gi, coord); + if (gi->libs == GROUP_REFILL_LIBS) + board_group_find_extra_libs(board, group, gi, coord); if (gi->libs == 1) board_capturable_add(board, group); -- 2.11.4.GIT