Changeset: ca548824bd93 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/ca548824bd93
Modified Files:
gdk/gdk_project.c
Branch: Mar2025
Log Message:
No need to use BATcount if we have a BAT iterator.
diffs (14 lines):
diff --git a/gdk/gdk_project.c b/gdk/gdk_project.c
--- a/gdk/gdk_project.c
+++ b/gdk/gdk_project.c
@@ -824,8 +824,8 @@ BATproject2(BAT *restrict l, BAT *restri
}
bn->tunique_est =
- MIN(li.unique_est ? li.unique_est : BATcount(li.b),
- r1i.unique_est ? r1i.unique_est : BATcount(r1i.b));
+ MIN(li.unique_est ? li.unique_est : li.count,
+ r1i.unique_est ? r1i.unique_est : r1i.count);
if (!BATtdensebi(&r1i) || (r2 && !BATtdensebi(&r2i)))
BATtseqbase(bn, oid_nil);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]