Update of /cvsroot/monetdb/pathfinder/runtime
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv18787
Modified Files:
pathfinder.mx
Log Message:
- performance fix in vx_lookup(): if there are zero matches, we would do a full
check
Index: pathfinder.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/pathfinder.mx,v
retrieving revision 1.319
retrieving revision 1.320
diff -u -d -r1.319 -r1.320
--- pathfinder.mx 5 Apr 2007 14:53:16 -0000 1.319
+++ pathfinder.mx 5 Apr 2007 17:07:39 -0000 1.320
@@ -2235,6 +2235,9 @@
# avoid doing this when ins/del are empty: res maybe a view on idx
(readonly case)
iter_cand.access(BAT_WRITE).insert(iter_ins).deleteBuns(iter_del).access(BAT_READ);
}
+ # without any candidate NIDs, we are sure to find no matches
+ if (count(iter_cand) = 0) return empty_bat;
+
# check against finding nil NIDs. These indicate attribute values
ommitted from the index
if (isnil(min(iter_cand))) {
if (gettext) iter_cand := iter_cand.ord_select(oid_nil,oid_nil);
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins