Author: nextgens
Date: 2007-03-23 19:23:13 +0000 (Fri, 23 Mar 2007)
New Revision: 12288
Modified:
trunk/freenet/src/freenet/client/StandardOnionFECCodec.java
Log:
Try to win some processing time removing a Thread.sleep(). We rely on the OS
setting the thread priority and its sheduler to handle it
Modified: trunk/freenet/src/freenet/client/StandardOnionFECCodec.java
===================================================================
--- trunk/freenet/src/freenet/client/StandardOnionFECCodec.java 2007-03-23
19:17:33 UTC (rev 12287)
+++ trunk/freenet/src/freenet/client/StandardOnionFECCodec.java 2007-03-23
19:23:13 UTC (rev 12288)
@@ -438,12 +438,6 @@
if(logMINOR) Logger.minor(this, "Stripe
encode took "
+ (endTime - startTime)
+ "ms for k=" + k + ", n="
+ n + ", stripeSize=" +
STRIPE_SIZE);
- // Try to limit CPU usage!!
- try {
- Thread.sleep(endTime -
startTime);
- } catch (InterruptedException e) {
- // Ignore
- }
// packets now contains an array of
decoded blocks, in order
// Write the data out
for (int i = k; i < n; i++) {