Changeset: 0646c0de9d51 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0646c0de9d51
Modified Files:
monetdb5/optimizer/opt_joinpath.mx
Branch: default
Log Message:
Avoid expensive recursion in joinpath
The opportunities for recursive optimization are small.
A single pass should be enough.
diffs (16 lines):
diff --git a/monetdb5/optimizer/opt_joinpath.mx
b/monetdb5/optimizer/opt_joinpath.mx
--- a/monetdb5/optimizer/opt_joinpath.mx
+++ b/monetdb5/optimizer/opt_joinpath.mx
@@ -234,9 +234,11 @@
GDKfree(old);
GDKfree(candidate);
- /* there may be new opportunities to remove common expressions */
+ /* there may be new opportunities to remove common expressions
+ avoid the recursion
if ( actions )
return actions + OPTjoinSubPath(cntxt, mb);
+ */
return actions;
}
@-
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list