Changeset: 13b1b8e721a1 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=13b1b8e721a1
Modified Files:
        monetdb5/optimizer/opt_dataflow.mx
Branch: default
Log Message:

Simple flow includes simple arithmetic


diffs (23 lines):

diff --git a/monetdb5/optimizer/opt_dataflow.mx 
b/monetdb5/optimizer/opt_dataflow.mx
--- a/monetdb5/optimizer/opt_dataflow.mx
+++ b/monetdb5/optimizer/opt_dataflow.mx
@@ -110,6 +110,11 @@ opt_export void removeDataflow(InstrPtr 
 #include "mal_instruction.h"
 #include "mal_interpreter.h"
 
+/*
+ * dataflow processing incurs overhead and is only
+ * relevant if multiple tasks kan be handled at the same time.
+ * Also simple expressions dont had to be done in parallel.
+*/
 static int
 simpleFlow(InstrPtr *old, int start, int last)
 {
@@ -124,6 +129,7 @@ simpleFlow(InstrPtr *old, int start, int
                for( j= q->retc; j<q->argc; j++)
                        if( getArg(p,0) == getArg(q,j))
                                simple= TRUE;
+               simple |= getModuleId(p) == calcRef || getModuleId(p) == 
mtimeRef || getModuleId(p) == strRef || getModuleId(p)== mmathRef;
                if( !simple)
                        return 0;
                p = q;
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to