gnugo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnugo-devel] fastlib optimization


From: Evan Berggren Daniel
Subject: [gnugo-devel] fastlib optimization
Date: Fri, 18 Oct 2002 14:19:08 -0400 (EDT)

This one liner slightly expands the cases where fastlib works, improving
the speed of approxlib by ~10%  (my profile is fairly noisy, though, so
this could be somewhat off in either direction).

Regression delta should be zero, but I haven't checked everything
(reading.tst and owl1.tst).

Thanks

Evan


Index: engine/board.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/board.c,v
retrieving revision 1.53
diff -u -r1.53 board.c
--- engine/board.c      14 Oct 2002 17:02:57 -0000      1.53
+++ engine/board.c      18 Oct 2002 15:39:26 -0000
@@ -2065,7 +2065,7 @@
       if ((neighbor_size <= 2 && !ally1)
           || (neighbor_size == 1
               && ally1
-              && !ally2
+              && (!ally2 || COUNTSTONES(ally2) == 1)
               && COUNTSTONES(ally1) == 1)) {
         /* Here, we can gain only the adjacent new liberty. */
         fast_liberties++;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]