once again a performance hack

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6388 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 15 years ago
parent 2f6d88403e
commit 09de5da74a

@ -533,6 +533,7 @@ public final class FileUtils {
}
public static Iterator<String> strings(byte[] a) {
if (a == null) return new ArrayList<String>().iterator();
try {
return new StringsIterator(new BufferedReader(new InputStreamReader(new ByteArrayInputStream(a), "UTF-8")));
} catch (UnsupportedEncodingException e) {

@ -1656,7 +1656,6 @@ public final class Switchboard extends serverAbstractSwitch implements serverSwi
}
final long stackEndTime = System.currentTimeMillis();
if (log.isInfo()) log.logInfo("CRAWL: ADDED " + hl.size() + " LINKS FROM " + entry.url().toNormalform(false, true) +
", NEW CRAWL STACK SIZE IS " + crawlQueues.noticeURL.stackSize(NoticedURL.STACK_TYPE_CORE) +
", STACKING TIME = " + (stackEndTime-stackStartTime) +
", PARSING TIME = " + (parsingEndTime-parsingStartTime));
}

@ -235,7 +235,6 @@ public final class serverCore extends serverAbstractBusyThread implements server
this.log.logInfo("Trying to bind server to port " + bindPort+ " with "+ extendedPort + "as seedPort.");
this.socket.bind(/*bindAddress = */generateSocketAddress(bindPort));
}
// updating the port information
//yacyCore.seedDB.mySeed.put(yacySeed.PORT,Integer.toString(bindAddress.getPort()));
//yacyCore.seedDB.mySeed().put(yacySeed.PORT, extendedPort);

@ -786,7 +786,9 @@ public class yacyURL implements Serializable {
public final String hash() {
// in case that the object was initialized without a known url hash, compute it now
if (this.hash == null) this.hash = urlHashComputation();
synchronized (this) {
if (this.hash == null) this.hash = urlHashComputation();
}
return this.hash;
}

Loading…
Cancel
Save