Update of /cvsroot/monetdb/pathfinder/compiler
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21252

Modified Files:
        compile.c main_opt.c 
Log Message:
-- Added a new optimization phase that is based on the required node
   properties (introduced some days ago):

   o The optimization phase unnests constant constructors if neither
     their order nor their ids are needed. The following query

       for $a in 1 to 1000 return <a>42</a>

     is rewritten (on the algebraic level) into something comparable to

       let $foo := <a>42</a> return for $a in 1 to 1000 return $foo

     A constant tree is thus created only once.

   o A further optimization removes the merge adjacent text nodes
     operator in case the nodes are never queried. This leads to
     results that consist of (potentially) more text nodes than
     allowed. The serialization however will hide that fact.


U main_opt.c
Index: main_opt.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/main_opt.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- main_opt.c  2 Apr 2008 16:13:43 -0000       1.2
+++ main_opt.c  4 Apr 2008 09:45:10 -0000       1.3
@@ -200,7 +200,7 @@
      */
     static char *progname = 0;
 
-    char *opt_args  = "OIKDCG_VGO_[J]OKVCG"
+    char *opt_args  = "OIKDCG_VGO_[J]OKVCGN"
                           "}IM__{_[J]OKVCG"
                           "}IM__{_[J]OKVCGCG"
                           "}IM__{_[J]OKVCG"

U compile.c
Index: compile.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/compile.c,v
retrieving revision 1.148
retrieving revision 1.149
diff -u -d -r1.148 -r1.149
--- compile.c   3 Apr 2008 09:48:31 -0000       1.148
+++ compile.c   4 Apr 2008 09:45:09 -0000       1.149
@@ -149,14 +149,14 @@
 
     status->standoff_axis_steps = false;
 
-    status->opt_alg             = "OIKDCG_VGO_[J]OKVCG"
+    status->opt_alg             = "OIKDCG_VGO_[J]OKVCGN"
                                       "}IM__{_[J]OKVCG"
                                       "}IM__{_[J]OKVCGCG"
                                       "}IM__{_[J]OKVCG"
                                       "}IMTS{_[J]OKVCGCG"
                                       "}IMTS{_[J]OKVCG"
                                       "}IMTS{_[J]OKVCGE[]CGP";
-    status->opt_sql             = "OIKDCG_VGO_[J]OKVCG"
+    status->opt_sql             = "OIKDCG_VGO_[J]OKVCGN"
                                       "}IM__{_[J]OKVCG"
                                       "}IM__{_[J]OKVCGCG"
                                       "}IM__{_[J]OKVCG"


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to