Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

increased cache size of robots database; however, this should be integrated into new memory control

orbiter3274ae725eff
diff --git a/source/de/anomic/plasma/plasmaCrawlRobotsTxt.java b/source/de/anomic/plasma/plasmaCrawlRobotsTxt.java
index 772e354f0..a80d870b1 100644
--- a/source/de/anomic/plasma/plasmaCrawlRobotsTxt.java
+++ b/source/de/anomic/plasma/plasmaCrawlRobotsTxt.java
@@ -67,15 +67,15 @@ public class plasmaCrawlRobotsTxt {
this.robotsTableFile = robotsTableFile;
if (robotsTableFile.exists()) {
try {
- robotsTable = new kelondroMap(new kelondroDyn(robotsTableFile, 32000));
+ robotsTable = new kelondroMap(new kelondroDyn(robotsTableFile, 1000000));
} catch (kelondroException e) {
robotsTableFile.delete();
robotsTableFile.getParentFile().mkdirs();
- robotsTable = new kelondroMap(new kelondroDyn(robotsTableFile, 32000, 256, 512));
+ robotsTable = new kelondroMap(new kelondroDyn(robotsTableFile, 1000000, 256, 512));
}
} else {
robotsTableFile.getParentFile().mkdirs();
- robotsTable = new kelondroMap(new kelondroDyn(robotsTableFile, 32000, 256, 512));
+ robotsTable = new kelondroMap(new kelondroDyn(robotsTableFile, 1000000, 256, 512));
}
}
@@ -87,7 +87,7 @@ public class plasmaCrawlRobotsTxt {
if (!(robotsTableFile.delete())) throw new RuntimeException("cannot delete robots.txt database");
try {
robotsTableFile.getParentFile().mkdirs();
- robotsTable = new kelondroMap(new kelondroDyn(robotsTableFile, 32000, 256, 512));
+ robotsTable = new kelondroMap(new kelondroDyn(robotsTableFile, 1000000, 256, 512));
} catch (IOException e){
serverLog.logSevere("PLASMA", "robotsTxt.resetDatabase", e);
}