forked from I2P_Developers/i2p.i2p
25%-50% cpu savings in BOB. The remainder of the fix is in streaming lib,
which aparently keeps running and does not sleep according to profiling.
This commit is contained in:
@@ -1,8 +0,0 @@
|
|||||||
compile.on.save=false
|
|
||||||
do.depend=false
|
|
||||||
do.jar=true
|
|
||||||
javac.debug=true
|
|
||||||
javadoc.preview=true
|
|
||||||
jaxbwiz.endorsed.dirs=/usr/local/netbeans-6.8/ide12/modules/ext/jaxb/api
|
|
||||||
jaxws.endorsed.dir=/usr/local/netbeans-6.5/java2/modules/ext/jaxws21/api:/usr/local/netbeans-6.5/ide10/modules/ext/jaxb/api
|
|
||||||
user.properties.file=/root/.netbeans/6.5/build.properties
|
|
@@ -1,8 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
|
|
||||||
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"/>
|
|
||||||
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/1">
|
|
||||||
<file>file:/usblv/NetBeansProjects/i2p.i2p/apps/BOB/src/net/i2p/BOB/MUXlisten.java</file>
|
|
||||||
<file>file:/usblv/NetBeansProjects/i2p.i2p/apps/BOB/src/net/i2p/BOB/Main.java</file>
|
|
||||||
</open-files>
|
|
||||||
</project-private>
|
|
@@ -50,7 +50,7 @@ public class DoCMDS implements Runnable {
|
|||||||
|
|
||||||
// FIX ME
|
// FIX ME
|
||||||
// I need a better way to do versioning, but this will do for now.
|
// I need a better way to do versioning, but this will do for now.
|
||||||
public static final String BMAJ = "00", BMIN = "00", BREV = "0C", BEXT = "";
|
public static final String BMAJ = "00", BMIN = "00", BREV = "0D", BEXT = "";
|
||||||
public static final String BOBversion = BMAJ + "." + BMIN + "." + BREV + BEXT;
|
public static final String BOBversion = BMAJ + "." + BMIN + "." + BREV + BEXT;
|
||||||
private Socket server;
|
private Socket server;
|
||||||
private Properties props;
|
private Properties props;
|
||||||
|
@@ -95,10 +95,14 @@ public class TCPio implements Runnable {
|
|||||||
if (b > 0) {
|
if (b > 0) {
|
||||||
Aout.write(a, 0, b);
|
Aout.write(a, 0, b);
|
||||||
} else if (b == 0) {
|
} else if (b == 0) {
|
||||||
Thread.yield(); // this should act like a mini sleep.
|
// Will this die? We'll see.
|
||||||
if (Ain.available() == 0) {
|
while(Ain.available() == 0) {
|
||||||
Thread.sleep(10);
|
Thread.sleep(20);
|
||||||
}
|
}
|
||||||
|
// Thread.yield(); // this should act like a mini sleep.
|
||||||
|
// if (Ain.available() == 0) {
|
||||||
|
// Thread.sleep(10);
|
||||||
|
// }
|
||||||
} else {
|
} else {
|
||||||
/* according to the specs:
|
/* according to the specs:
|
||||||
*
|
*
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
2010-06-29 sponge
|
||||||
|
* 25%-50% cpu savings in BOB. The remainder of the fix is in streaming
|
||||||
|
lib, which aparently keeps running and does not sleep according to
|
||||||
|
profiling.
|
||||||
|
|
||||||
2010-06-29 zzz
|
2010-06-29 zzz
|
||||||
* CapacityCalculator: Cleanup
|
* CapacityCalculator: Cleanup
|
||||||
* I2PTunnel: Add default HTTPS outproxy
|
* I2PTunnel: Add default HTTPS outproxy
|
||||||
|
@@ -18,7 +18,7 @@ public class RouterVersion {
|
|||||||
/** deprecated */
|
/** deprecated */
|
||||||
public final static String ID = "Monotone";
|
public final static String ID = "Monotone";
|
||||||
public final static String VERSION = CoreVersion.VERSION;
|
public final static String VERSION = CoreVersion.VERSION;
|
||||||
public final static long BUILD = 4;
|
public final static long BUILD = 5;
|
||||||
|
|
||||||
/** for example "-test" */
|
/** for example "-test" */
|
||||||
public final static String EXTRA = "";
|
public final static String EXTRA = "";
|
||||||
|
Reference in New Issue
Block a user