Update of /cvsroot/monetdb/pathfinder/runtime
In directory sc8-pr-cvs16:/tmp/cvs-serv25750
Modified Files:
pf_support.mx
Log Message:
Two more occurrences: 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.222
retrieving revision 1.223
diff -u -d -r1.222 -r1.223
--- pf_support.mx 3 May 2007 13:02:09 -0000 1.222
+++ pf_support.mx 3 May 2007 13:07:58 -0000 1.223
@@ -2043,10 +2043,8 @@
x := oldbat.reverse().max().wrd();
}
var xkey := wrd(key);
- var n := cast(nil, oldbat.ttype());
- while (x < xkey) {
- oldbat.append(n, true);
- x :+= 1;
+ if (x < xkey) {
+ oldbat.append(densebat(wrd(xkey - x)).project(cast(nil,
oldbat.ttype())), true);
}
}
oldbat.replace(key, val, true);
@@ -2417,12 +2415,8 @@
# we're not actually using the tail value here...
update_hole := rid_size.reverse().select(newholefirst,
newholelast).reverse();
if (update_hole.count() < delta) {
- var i := update_hole.count();
update_hole := update_hole.copy().access(BAT_WRITE).key(true);
- while (i < delta) {
- update_hole := update_hole.append(int_nil);
- i :+= 1;
- }
+ update_hole := update_hole.append(densebat(wrd(delta -
update_hole.count())).project(int_nil));
}
update_hole := [nilor]([-](update_hole.project(int(newholelast)),
[int](update_hole.mirror())), int_nil);
-------------------------------------------------------------------------
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