Update of /cvsroot/monetdb/pathfinder/compiler/algebra/opt
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv1809/compiler/algebra/opt
Modified Files:
Tag: Nov2009
opt_general.brg
Log Message:
propagated changes of Monday Sep 28 2009 - Wednesday Oct 07 2009
from the Aug2009_NFI branch to the Nov2009 branch
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/09/28 - boncz: compiler/algebra/opt/opt_general.brg,1.69.6.1
optimizations for NFI XIRAF use case -- thanks a great bunch Jan R.!!
- ds_link (already in Stable) optimized for 1-node case
- indices now contain all data (but still not used automatically, nor based
on Lefteris' new indexing schemes)
most prominently though is: subexpression result caching
- caching hints in pragmas
- query enclosed in (# pf:session id:msec ) { query } or (# pf:session-use
id:msec ) { query }
+ queries in the same session use the same working set (documents opened
only once)
+ same working set allows to cache results
+ pf:session-use only uses cache, cannot add to it
- but, multiple pf:session-use can run concurrently; whereas pf:session
is exclusive
- inside a query, an arbitrary number of expressions can be marked up for
caching/reuse
+ (# pf:cache id ) { subexpr }
+ subexpr may not be enclosed by a for-loop
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
U opt_general.brg
Index: opt_general.brg
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/opt/opt_general.brg,v
retrieving revision 1.69
retrieving revision 1.69.4.1
diff -u -d -r1.69 -r1.69.4.1
--- opt_general.brg 24 Jun 2009 12:15:34 -0000 1.69
+++ opt_general.brg 7 Oct 2009 13:44:46 -0000 1.69.4.1
@@ -139,8 +139,9 @@
%term frag_extract = 72
%term frag_union = 73
%term empty_frag = 74
-%term error = 79
-%term nil = 80
+%term error = 78
+%term nil = 79
+%term cache = 80
%term trace = 81
%term trace_items = 82
%term trace_msg = 83
@@ -246,17 +247,18 @@
Side: error (Side, Rel) = 91 (10);
Side: nil = 92 (10);
-Side: trace (Side, Trc) = 93 (10);
-Trc: trace_items (Rel, Msg) = 94 (10);
-Msg: trace_msg (Rel, Map) = 95 (10);
-Map: trace_map (Rel, Map) = 96 (10);
-Map: nil = 97 (10);
+Side: cache (Side, Rel) = 93 (10);
+Side: trace (Side, Trc) = 94 (10);
+Trc: trace_items (Rel, Msg) = 95 (10);
+Msg: trace_msg (Rel, Map) = 96 (10);
+Map: trace_map (Rel, Map) = 97 (10);
+Map: nil = 98 (10);
-Rel: rec_fix (side_effects (Side, Rec), Rel) = 98 (10);
-Rel: rec_base = 99 (10);
-Rec: rec_param (Arg, Rec) = 100 (10);
-Rec: nil = 101 (10);
-Arg: rec_arg (Rel, Rel) = 102 (10);
+Rel: rec_fix (side_effects (Side, Rec), Rel) = 99 (10);
+Rel: rec_base = 100 (10);
+Rec: rec_param (Arg, Rec) = 101 (10);
+Rec: nil = 102 (10);
+Arg: rec_arg (Rel, Rel) = 103 (10);
Rel: fun_call (Rel, Param) = 105 (10);
Param: fun_param (Rel, Param) = 106 (10);
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins