You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2019/05/23 16:06:58 UTC

[maven-surefire] 02/03: all reporters and serializer use 64KB I/O buffer

This is an automated email from the ASF dual-hosted git repository.

tibordigana pushed a commit to branch 1546-1222-v2
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git

commit d1325d14c5e05f52a2fb125e4ef557dfb9e9d0dd
Author: tibordigana <ti...@apache.org>
AuthorDate: Thu May 23 16:15:31 2019 +0200

    all reporters and serializer use 64KB I/O buffer
---
 .../apache/maven/plugin/surefire/report/ConsoleOutputFileReporter.java  | 2 +-
 .../org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/ConsoleOutputFileReporter.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/ConsoleOutputFileReporter.java
index 857b68e..1456c81 100644
--- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/ConsoleOutputFileReporter.java
+++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/ConsoleOutputFileReporter.java
@@ -43,7 +43,7 @@ import static org.apache.maven.surefire.util.internal.StringUtils.NL;
 public class ConsoleOutputFileReporter
     implements TestcycleConsoleOutputReceiver
 {
-    private static final int STREAM_BUFFER_SIZE = 16 * 1024;
+    private static final int STREAM_BUFFER_SIZE = 64 * 1024;
     private static final int OPEN = 0;
     private static final int CLOSED_TO_REOPEN = 1;
     private static final int CLOSED = 2;
diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java
index 11cec8d..b9d387e 100644
--- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java
+++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java
@@ -331,7 +331,7 @@ public class StatelessXmlReporter
 
         try
         {
-            return new BufferedOutputStream( new FileOutputStream( reportFile ), 16 * 1024 );
+            return new BufferedOutputStream( new FileOutputStream( reportFile ), 64 * 1024 );
         }
         catch ( Exception e )
         {