Changeset: 18b4040031f5 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=18b4040031f5 Modified Files: gdk/gdk_imprints.c Branch: default Log Message:
Moving (slowly) to void headed BATsample_. First stop imprints. diffs (30 lines): diff --git a/gdk/gdk_imprints.c b/gdk/gdk_imprints.c --- a/gdk/gdk_imprints.c +++ b/gdk/gdk_imprints.c @@ -551,7 +551,7 @@ BATimprints(BAT *b) { MT_lock_set(&GDKimprintsLock(ABS(b->batCacheid)), "BATimprints"); if (b->T->imprints == NULL) { Imprints *imprints; - BAT *smp, *t; + BAT *smp, *s; BUN cnt; str nme = BBP_physical(b->batCacheid); @@ -568,10 +568,13 @@ BATimprints(BAT *b) { } #define SMP_SIZE 2048 - smp = BATsample(b, SMP_SIZE); - t = BATmirror(BATorder(BATmirror(smp))); - smp = BATmirror(BATkunique(BATmirror(t))); - BBPunfix(t->batCacheid); + s = BATsample_(b, SMP_SIZE); + smp = BATproject(s,b); + BBPunfix(s->batCacheid); + s = BATsort(BATmirror(smp)); + BBPunfix(smp->batCacheid); + smp = BATmirror(BATkunique(s)); + BBPunfix(s->batCacheid); /* sample now is ordered and unique on tail */ assert(smp->tkey && smp->tsorted); cnt = BATcount(smp); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list