[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnugo-devel] Reading patch
From: |
Gunnar Farneback |
Subject: |
Re: [gnugo-devel] Reading patch |
Date: |
Sat, 22 Feb 2003 21:21:55 +0100 |
User-agent: |
EMH/1.14.1 SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/20.7 (sparc-sun-solaris2.7) (with unibyte mode) |
Nando wrote:
> The appended one-liner generates following breakage :
>
> reading:177 PASS
> 13x13:31 FAIL I believe M6 is correct.
> nando:110 PASS
> nando:111 PASS (identical with previous test)
Nice.
> The impact on performance is negligible (< 0.01%)
I counter with another oneliner in reading.c. Here the cost is about
0.7% increase of reading nodes and the regression delta is
owl:179 FAIL 0 [3 R19]
blunder:23 PASS L2 [!F4|F5|F6]
arb:203 PASS T7 [T7]
arb:220 PASS F7 [!F6]
arend:3 PASS P6 [P6|Q5]
I haven't checked what's going on with owl:179 but the passes, in
particular blunder:23, are quite significant.
- allow conditional ko capture in attack4()
/Gunnar
Index: engine/reading.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/reading.c,v
retrieving revision 1.106
diff -u -r1.106 reading.c
--- engine/reading.c 22 Feb 2003 16:02:25 -0000 1.106
+++ engine/reading.c 22 Feb 2003 20:17:53 -0000
@@ -3733,13 +3733,10 @@
if (stackp >= branch_depth && k > 0)
break;
xpos = moves.pos[k];
- /* Conditional ko capture is disabled
- * because it seems too expensive.
- * */
if (komaster_trymove(xpos, other, "attack4-A", str,
komaster, kom_pos, &new_komaster,
&new_kom_pos, &ko_move,
- 0 && stackp <= ko_depth && savecode == 0)) {
+ stackp <= ko_depth && savecode == 0)) {
if (!ko_move) {
dcode = do_find_defense(str, NULL, new_komaster, new_kom_pos);
if (dcode != WIN
- [gnugo-devel] Reading patch, Portela Fernand, 2003/02/21
- Re: [gnugo-devel] Reading patch,
Gunnar Farneback <=
- Re: [gnugo-devel] Reading patch, Nando, 2003/02/23
- Re: [gnugo-devel] Reading patch, Evan Berggren Daniel, 2003/02/23
- Re: [gnugo-devel] Reading patch, Paul Pogonyshev, 2003/02/23
- Re: [gnugo-devel] Reading patch, Evan Berggren Daniel, 2003/02/23
- Re: [gnugo-devel] Reading patch, Paul Pogonyshev, 2003/02/23
- Re: [gnugo-devel] Reading patch, bump, 2003/02/23
- Re: [gnugo-devel] Reading patch, Paul Pogonyshev, 2003/02/23