NTCP: Performance improvement (tickets #2619, #2620)

This commit is contained in:
zzz
2019-10-12 13:23:28 +00:00
parent 29eabc4706
commit 05c30b4f1d
4 changed files with 10 additions and 6 deletions

View File

@ -18,10 +18,10 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 10;
public final static long BUILD = 11;
/** for example "-test" */
public final static String EXTRA = "";
public final static String EXTRA = "-rc";
public final static String FULL_VERSION = VERSION + "-" + BUILD + EXTRA;
public static void main(String args[]) {
System.out.println("I2P Router version: " + FULL_VERSION);

View File

@ -64,9 +64,8 @@ class Reader {
already = true;
} else {
_pendingConnections.add(con);
// only notify here if added?
_pendingConnections.notify();
}
_pendingConnections.notify();
}
if (_log.shouldLog(Log.DEBUG))
_log.debug("wantsRead: " + con + " already live? " + already);

View File

@ -62,9 +62,8 @@ class Writer {
already = true;
} else {
pending = _pendingConnections.add(con);
// only notify here if added?
_pendingConnections.notify();
}
_pendingConnections.notify();
}
if (_log.shouldLog(Log.DEBUG))
_log.debug("wantsWrite: " + con + " already live? " + already + " added to pending? " + pending + ": " + source);