Update of /cvsroot/monetdb/pathfinder/runtime
In directory sc8-pr-cvs16:/tmp/cvs-serv23139
Modified Files:
pf_support.mx
Log Message:
Use the new built-in function densebat instead of MIL loop.
Index: pf_support.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/pf_support.mx,v
retrieving revision 1.221
retrieving revision 1.222
diff -u -d -r1.221 -r1.222
--- pf_support.mx 2 May 2007 12:35:31 -0000 1.221
+++ pf_support.mx 3 May 2007 13:02:09 -0000 1.222
@@ -2013,10 +2013,8 @@
} else {
x := oldbat.reverse().max().wrd();
}
- var n := cast(nil, oldbat.ttype());
- while (x < mx) {
- oldbat.append(n, true);
- x :+= 1;
+ if (x < mx) {
+ oldbat.append(densebat(wrd(mx - x)).project(cast(nil, oldbat.ttype())),
true);
}
oldbat := oldbat.replace(newbat, true);
} else {
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins