Author: toad
Date: 2007-06-27 13:46:52 +0000 (Wed, 27 Jun 2007)
New Revision: 13779
Modified:
trunk/freenet/src/freenet/clients/http/XMLSpider.java
Log:
Tweaks
Modified: trunk/freenet/src/freenet/clients/http/XMLSpider.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/XMLSpider.java 2007-06-27
13:23:27 UTC (rev 13778)
+++ trunk/freenet/src/freenet/clients/http/XMLSpider.java 2007-06-27
13:46:52 UTC (rev 13779)
@@ -80,7 +80,7 @@
private final HashMap urisByWord = new HashMap();
private final HashMap titlesOfURIs = new HashMap();
- private static final int minTimeBetweenEachIndexRewriting = 10;
+ private static final int minTimeBetweenEachIndexRewriting = 60;
//private static final String indexFilename = "index.xml";
private static final String DEFAULT_INDEX_DIR = "myindex/";
public Set allowedMIMETypes;
@@ -96,7 +96,7 @@
private final HashMap positionsByWordByURI = new HashMap(); /* String
(URI) -> HashMap (String (word) -> Integer[] (Positions)) */
// Can have many; this limit only exists to save memory.
- private static final int maxParallelRequests = 20;
+ private static final int maxParallelRequests = 100;
private int maxShownURIs = 50;
private HashMap urisToNumbers;
private NodeClientCore core;
@@ -314,6 +314,8 @@
if(word.length() < 3)
return;
+
+ word = word.intern();
FreenetURI[] uris = (FreenetURI[]) urisByWord.get(word);