Changeset: 17599e54016e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/17599e54016e
Modified Files:
        gdk/gdk_project.c
Branch: Jan2022
Log Message:

Share vheaps in BATproject when possible.


diffs (18 lines):

diff --git a/gdk/gdk_project.c b/gdk/gdk_project.c
--- a/gdk/gdk_project.c
+++ b/gdk/gdk_project.c
@@ -699,6 +699,14 @@ BATproject2(BAT *restrict l, BAT *restri
                        bat_iterator_end(&r2i);
                        return bn;
                }
+       } else if (ATOMvarsized(tpe) &&
+                  l->tnonil &&
+                  r2 == NULL &&
+                  (r1i.count == 0 ||
+                   lcount > (r1i.count >> 3) ||
+                   r1->batRestricted == BAT_READ)) {
+               tpe = r1i.width == 4 ? TYPE_int : TYPE_lng;
+               stringtrick = true;
        } else if (tpe == TYPE_msk || mask_cand(r1)) {
                r1 = BATunmask(r1);
                if (r1 == NULL)
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to