[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnugo-devel] fastlib optimization
From: |
Trevor Morris |
Subject: |
Re: [gnugo-devel] fastlib optimization |
Date: |
Sat, 19 Oct 2002 09:37:08 -0400 |
I think that Paul's optimization is correct, and should cover even
more cases. I've been fooled before, though. This message
contains the relevant part of Paul's patch:
http://mail.gnu.org/pipermail/gnugo-devel/2002-October/003148.html
At 02:19 PM 10/18/2002 -0400, Evan Berggren Daniel wrote:
>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++;
>
>
>
>_______________________________________________
>gnugo-devel mailing list
>address@hidden
>http://mail.gnu.org/mailman/listinfo/gnugo-devel