[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnugo-devel] benefit of grid optimization more
From: |
Paul Pogonyshev |
Subject: |
[gnugo-devel] benefit of grid optimization more |
Date: |
Fri, 24 Jan 2003 23:06:13 +0200 |
User-agent: |
KMail/1.4.3 |
this patch (nearly) completes the job i once started - dropping of
unnecessary pattern elements.
- goal_elements and callback_data added to all relevant databases
no regression changes and i'm pretty certain it really drops only
unused elements.
it saves some another 40 kb in executable and must give a tiny
speedup (less elements to loop on in matcher and callbacks). 40 kb
stand for 5k elements.
Paul
Index: attack.db
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/attack.db,v
retrieving revision 1.9
diff -u -p -r1.9 attack.db
--- attack.db 2 Jan 2003 00:23:29 -0000 1.9
+++ attack.db 24 Jan 2003 20:48:21 -0000
@@ -43,6 +43,11 @@
#
##################################################################
+
+goal_elements none
+callback_data X
+
+
Pattern Attack1
# Even if a ladder works (and is found by the tactical reading) we
# also want to consider the geta capture.
Index: barriers.db
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/barriers.db,v
retrieving revision 1.47
diff -u -p -r1.47 barriers.db
--- barriers.db 15 Jan 2003 08:24:02 -0000 1.47
+++ barriers.db 24 Jan 2003 20:48:28 -0000
@@ -55,6 +55,10 @@
# documentation for explanation and influence.c for details.
+goal_elements none
+callback_data XO,!
+
+
Pattern Barrier1
O,O
Index: conn.db
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/conn.db,v
retrieving revision 1.33
diff -u -p -r1.33 conn.db
--- conn.db 2 Jan 2003 00:23:29 -0000 1.33
+++ conn.db 24 Jan 2003 20:49:00 -0000
@@ -67,12 +67,20 @@
#
###################################
+
+goal_elements none
+# callback_data is dependent on pattern class in this database
+
+
########################
#
# B patterns on the edge
#
########################
+callback_data X!
+
+
Pattern EB1
?XO
@@ -475,6 +483,9 @@ b*d
#
##########################
+callback_data X!
+
+
Pattern CB1
?O. fragile double connection
@@ -899,6 +910,10 @@ B.?
#
########################
+# Static connections needs almost everything
+callback_data .Oxo,!
+
+
Pattern EC1
??oo??
@@ -1007,6 +1022,10 @@ cbdf
#
##############################################
+# Static connections needs almost everything
+callback_data .Oxo,!
+
+
Pattern CC101
.O
@@ -1685,6 +1704,9 @@ ac
# lunch invalidating patterns
#
#############################
+
+callback_data X
+
Pattern Lunch1
# O stone on edge is not lunch!
Index: defense.db
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/defense.db,v
retrieving revision 1.8
diff -u -p -r1.8 defense.db
--- defense.db 2 Jan 2003 00:23:29 -0000 1.8
+++ defense.db 24 Jan 2003 20:49:03 -0000
@@ -43,6 +43,11 @@
#
##################################################################
+
+goal_elements none
+callback_data O
+
+
Pattern Def1
X*
Index: endgame.db
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/endgame.db,v
retrieving revision 1.44
diff -u -p -r1.44 endgame.db
--- endgame.db 15 Jan 2003 08:24:02 -0000 1.44
+++ endgame.db 24 Jan 2003 20:51:37 -0000
@@ -101,6 +101,12 @@
#
######################################################################
+
+goal_elements none
+# Several patterns here have a or d class, so we need these elements.
+callback_data XOxo
+
+
# first line descents (except in corner)
########################################
Index: fuseki.db
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/fuseki.db,v
retrieving revision 1.26
diff -u -p -r1.26 fuseki.db
--- fuseki.db 12 Jan 2003 15:26:53 -0000 1.26
+++ fuseki.db 24 Jan 2003 20:51:52 -0000
@@ -93,6 +93,11 @@
#
######################################################################
+
+goal_elements none
+callback_data XOxo
+
+
################
# Approach moves
################
Index: influence.db
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/influence.db,v
retrieving revision 1.9
diff -u -p -r1.9 influence.db
--- influence.db 2 Jan 2003 00:23:29 -0000 1.9
+++ influence.db 24 Jan 2003 20:52:05 -0000
@@ -37,6 +37,20 @@
# E - Enhance influence.
# I - Invasion points.
+
+goal_elements none
+# callback_data is pattern class dependent for this database
+
+
+########################
+#
+# Enhancement patterns
+#
+########################
+
+callback_data O
+
+
Pattern Enhance1
o..?
@@ -384,6 +398,15 @@ Pattern Enhance26
|..oo..
:8,E,value(15)
+
+
+########################
+#
+# Invasion patterns
+#
+########################
+
+callback_data none
Pattern Invade1
Index: patterns.db
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/patterns.db,v
retrieving revision 1.99
diff -u -p -r1.99 patterns.db
--- patterns.db 15 Jan 2003 08:24:02 -0000 1.99
+++ patterns.db 24 Jan 2003 20:55:34 -0000
@@ -85,6 +85,11 @@
#
+goal_elements none
+# FIXME: try to make callback_data pattern category specific
+callback_data XOxo
+
+
##########################
#
# Cutting and Connecting patterns
Index: patterns2.db
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/patterns2.db,v
retrieving revision 1.53
diff -u -p -r1.53 patterns2.db
--- patterns2.db 15 Jan 2003 08:24:02 -0000 1.53
+++ patterns2.db 24 Jan 2003 20:55:52 -0000
@@ -38,6 +38,12 @@
#
##############################
+
+goal_elements none
+# FIXME: try to make callback_data pattern category specific
+callback_data XOxo
+
+
##############################
#
# Connection of one space jump
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnugo-devel] benefit of grid optimization more,
Paul Pogonyshev <=