Update of /cvsroot/monetdb/pathfinder/compiler/algebra/opt
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv13812/compiler/algebra/opt
Added Files:
opt_projection.c
Log Message:
propagated changes of Friday Mar 20 2009
from the Feb2009 branch to the development trunk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/03/20 - baschdi: compiler/algebra/opt/opt_projection.c,1.1.2.1
adding new optimization -Y
this optimization pushes projection up in the tree to minimize them.
the goal is to simplify the tree for other optimizations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- NEW FILE: opt_projection.c ---
/**
* @file
*
* Optimize relational algebra expression DAG
* based on the required node properties.
* (This requires no burg pattern matching as we
* apply optimizations in a peep-hole style on
* single nodes only.)
*
* Copyright Notice:
* -----------------
*
* The contents of this file are subject to the Pathfinder Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://monetdb.cwi.nl/Legal/PathfinderLicense-1.1.html
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
[...1555 lines suppressed...]
break;
/* do nothing */
default:
break;
}
}
}
PFla_op_t *
PFalgopt_projection (PFla_op_t *root)
{
/* Infer icol properties first */
PFprop_infer_icol (root);
/* Optimize algebra tree */
opt_projection (root);
return root;
}
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins