Changeset: 1b0d41526026 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1b0d41526026
Modified Files:
        gdk/gdk_select.c
Branch: default
Log Message:

Reduce the impact of BATextend
If the estimate is off, we end up with many BATextend calls.
As soon as it happens we take the maximum size possible.


diffs (12 lines):

diff --git a/gdk/gdk_select.c b/gdk/gdk_select.c
--- a/gdk/gdk_select.c
+++ b/gdk/gdk_select.c
@@ -181,7 +181,7 @@ BAT_hashselect(BAT *b, BAT *s, BAT *bn, 
 
 #define addresult {\
        if( cnt == lim ){ \
-               BATextend(bn, BATgrows(bn));\
+               BATextend(bn, BATcount( b));\
                lim = BATcapacity(bn); \
                dst = (oid*) Tloc(bn, bn->U->first);\
         } \
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to