how to do 3rd party optimizations

git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@159 014f5005-505e-4b48-8d0a-63407b615a7c
master
LtWorf 2009-05-11 16:57:23 +07:00
parent e1d02bcd4c
commit 824379cf4c
1 changed files with 10 additions and 1 deletions

@ -19,7 +19,16 @@
'''This module contains functions to perform various optimizations on the expression trees.
The list general_optimizations contains pointers to general functions, so they can be called
within a cycle.'''
within a cycle.
It is possible to add new general optimizations by adding the function in the list
general_optimizations present in this module. And the optimization will be executed with the
other ones when optimizing.
A function will have one parameter, which is the root node of the tree describing the expression.
The class used is defined in optimizer module.
A function will have to return the number of changes performed on the tree.
'''
import optimizer