Changeset: 946e680dd69f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=946e680dd69f
Modified Files:
        gdk/gdk_batop.mx
Branch: default
Log Message:

Adjust the sampling strategy
Use the new sampling strategy which avoids a local clustering of values.
It has been proofed good results in sf-10 overall. The critical Q18
als benefitted with about 20%.


diffs (13 lines):

diff --git a/gdk/gdk_batop.mx b/gdk/gdk_batop.mx
--- a/gdk/gdk_batop.mx
+++ b/gdk/gdk_batop.mx
@@ -1248,7 +1248,8 @@ BAT_select_(BAT *b, const void *tl, cons
                BAT *tmp1;
                ALGODEBUG THRprintf(GDKout, "#BAT_select_(b=%s): sampling: tmp1 
= BATslice(b=%s, _lo=" BUNFMT ", _hi=" BUNFMT ");\n", BATgetId(b), BATgetId(b), 
_lo, _hi);
 
-               tmp1 = BATslice(b, _lo, _hi);   /* slice keeps all parent 
properties */
+               //tmp1 = BATslice(b, _lo, _hi); /* slice keeps all parent 
properties */
+               tmp1 = BATsample(b, 128);       
                if (tmp1) {
                        BAT *tmp2;
                        ALGODEBUG THRprintf(GDKout, "#BAT_select_(b=%s): 
sampling: tmp2 = BAT_select_(tmp1=%s, tl, th, tail);\n", BATgetId(b), 
BATgetId(tmp1));
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to