Changeset: 3e077cd7f62a for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3e077cd7f62a
Modified Files:
gdk/gdk_imprints.c
Branch: default
Log Message:
Imprints now use subsort and subunique
diffs (22 lines):
diff --git a/gdk/gdk_imprints.c b/gdk/gdk_imprints.c
--- a/gdk/gdk_imprints.c
+++ b/gdk/gdk_imprints.c
@@ -569,13 +569,14 @@ BATimprints(BAT *b) {
#define SMP_SIZE 2048
s = BATsample_(b, SMP_SIZE);
- smp = BATproject(s,b);
+ smp = BATsubunique(b, s);
BBPunfix(s->batCacheid);
- s = BATsort(BATmirror(smp));
+ s = BATproject(smp,b);
BBPunfix(smp->batCacheid);
- smp = BATmirror(BATkunique(s));
+ s->tkey=1; /* we know is unique on tail now */
+ BATsubsort(&smp,NULL,NULL,s,NULL,NULL,0,0);
BBPunfix(s->batCacheid);
- /* sample now is ordered and unique on tail */
+ /* smp now is ordered and unique on tail */
assert(smp->tkey && smp->tsorted);
cnt = BATcount(smp);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list