Author: rfrovarp
Date: Tue Mar 11 13:34:05 2008
New Revision: 636095
URL: http://svn.apache.org/viewvc?rev=636095&view=rev
Log:
getDocuments makes no guarantee about order of returned nodes in its API and sorting doesn't help the function any. Removed sorting due to huge performance hit. 44577
Modified:
lenya/trunk/src/java/org/apache/lenya/cms/site/NodeSet.java
Modified: lenya/trunk/src/java/org/apache/lenya/cms/site/NodeSet.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/java/org/apache/lenya/cms/site/NodeSet.java?rev=636095&r1=636094&r2=636095&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/site/NodeSet.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/site/NodeSet.java Tue Mar 11 13:34:05 2008
@@ -195,7 +195,7 @@
*/
public Document[] getDocuments() {
List documents = new ArrayList();
- for (NodeIterator i = ascending(); i.hasNext(); ) {
+ for (NodeIterator i = iterator(); i.hasNext(); ) {
SiteNode node = i.next();
String[] langs = node.getLanguages();
for (int l = 0; l < langs.length; l++) {
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.