From: Wolfgang M. M. <wol...@us...> - 2004-08-10 20:27:27
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/xquery In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24902/src/org/exist/xquery Modified Files: ForExpr.java Log Message: Refactored some methods to improve performance during storage and indexing. Index: ForExpr.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xquery/ForExpr.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ForExpr.java 10 Aug 2004 12:53:34 -0000 1.6 --- ForExpr.java 10 Aug 2004 20:27:18 -0000 1.7 *************** *** 114,119 **** context.setContextPosition(p); ! // atVal.setValue(p); // seb: this does not create a new Value. the old Value is referenced from results ! at.setValue(new IntegerValue(p)); contextSequence = contextItem.toSequence(); --- 114,120 ---- context.setContextPosition(p); ! // atVal.setValue(p); // seb: this does not create a new Value. the old Value is referenced from results ! if(positionalVariable != null) ! at.setValue(new IntegerValue(p)); contextSequence = contextItem.toSequence(); |