Author: toad
Date: 2007-08-15 17:14:47 +0000 (Wed, 15 Aug 2007)
New Revision: 14701

Modified:
   trunk/freenet/src/freenet/support/FileLoggerHook.java
Log:
Buffer the output. Unfortunately this code path isn't used in the current node..

Modified: trunk/freenet/src/freenet/support/FileLoggerHook.java
===================================================================
--- trunk/freenet/src/freenet/support/FileLoggerHook.java       2007-08-15 
16:53:32 UTC (rev 14700)
+++ trunk/freenet/src/freenet/support/FileLoggerHook.java       2007-08-15 
17:14:47 UTC (rev 14701)
@@ -693,7 +693,7 @@
                if (rotate) {
                        this.baseFilename = baseFilename;
                } else {
-                       logStream = new FileOutputStream(baseFilename, 
!logOverwrite);
+                       logStream = new BufferedOutputStream(new 
FileOutputStream(baseFilename, !logOverwrite), 65536);
                }
        }



Reply via email to