Changeset: db06c1abaa6e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=db06c1abaa6e
Modified Files:
        gdk/gdk_select.c
Branch: default
Log Message:

Rearrange condition so that simple tests come first.


diffs (20 lines):

diff --git a/gdk/gdk_select.c b/gdk/gdk_select.c
--- a/gdk/gdk_select.c
+++ b/gdk/gdk_select.c
@@ -1337,11 +1337,11 @@ BATsubselect(BAT *b, BAT *s, const void 
                bn = BAT_hashselect(b, s, bn, tl, maximum);
        } else {
                int use_imprints = 0;
-               if (((b->batPersistence == PERSISTENT) ||
-                   ((parent = VIEWtparent(b)) &&
-                    (BBPquickdesc(ABS(parent),0)->batPersistence == 
PERSISTENT)))
-                  && !equi
-                  && !ATOMvarsized(b->ttype)) {
+               if (!equi &&
+                   !b->tvarsized &&
+                   (b->batPersistence == PERSISTENT ||
+                    ((parent = VIEWtparent(b)) != 0 &&
+                     BBPquickdesc(ABS(parent),0)->batPersistence == 
PERSISTENT))) {
                        /* use imprints if
                         *   i) bat is persistent, or parent is persistent
                         *  ii) it is not an equi-select, and
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to