r9579 - helma/helma/branches/lazy_collections/src/helma/objectmodel/db

[email protected]
Newsgroups gmane.comp.java.helma.cvs
Message-ID <20090406153933.9BEEC3D0D6@mia>
Author: hannes
Date: 2009-04-06 17:39:33 +0200 (Mon, 06 Apr 2009)
New Revision: 9579

Modified:
   helma/helma/branches/lazy_collections/src/helma/objectmodel/db/Node.java
Log:
Don't prefetch nodes in subnode enumeration for better performance comparsion with trunk.

Details at http://dev.helma.org/trac/helma/changeset/9579

Modified: helma/helma/branches/lazy_collections/src/helma/objectmodel/db/Node.java
===================================================================
--- helma/helma/branches/lazy_collections/src/helma/objectmodel/db/Node.java	2009-04-06 09:08:18 UTC (rev 9578)
+++ helma/helma/branches/lazy_collections/src/helma/objectmodel/db/Node.java	2009-04-06 15:39:33 UTC (rev 9579)
@@ -1593,9 +1593,8 @@
 
             public Object nextElement() {
                 // prefetch in batches of 100
-                if (pos % 100 == 0)
-                    list.prefetch(pos, 100);
-
+                // if (pos % 100 == 0)
+                //     list.prefetch(pos, 100);
                 return list.getNode(pos++);
             }
         };
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.