Changeset: 98f9241a1823 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/98f9241a1823
Modified Files:
        gdk/gdk_select.c
Branch: default
Log Message:

Create a hash on the parent bat (and use it) if it is the same size as the view 
and it is persistent.


diffs (17 lines):

diff --git a/gdk/gdk_select.c b/gdk/gdk_select.c
--- a/gdk/gdk_select.c
+++ b/gdk/gdk_select.c
@@ -1333,6 +1333,13 @@ BATselect(BAT *b, BAT *s, const void *tl
                        (BATcount(tmp) == BATcount(b) ||
                         BATcount(tmp) / tmp->thash->nheads * (ci.tpe != 
cand_dense ? ilog2(BATcount(s)) : 1) < (s ? BATcount(s) : BATcount(b)) ||
                         HASHget(tmp->thash, HASHprobe(tmp->thash, tl)) == 
HASHnil(tmp->thash));
+               /* create a hash on the parent bat (and use it) if it is
+                * the same size as the view and it is persistent */
+               if (!phash &&
+                   !tmp->batTransient &&
+                   BATcount(tmp) == BATcount(b) &&
+                   BAThash(tmp) == GDK_SUCCEED)
+                       hash = phash = true;
        }
 
        /* make sure tsorted and trevsorted flags are set */
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to