doortts doortts 2017-10-05
svn: Fix slowing down commit issue
The buffer was not used when reading the svn committed files.
That was the reason for slowing down commit.

See: Yona Github issue #301
@7169087d6dabe4efe8f58d17f3f07abce36615ba
app/utils/PlayServletRequest.java
--- app/utils/PlayServletRequest.java
+++ app/utils/PlayServletRequest.java
@@ -144,7 +144,7 @@
                 // BodyParser.of annotation at SvnApp.service() method.
                 throw new IOException("Request entity is too large.");
             }
-            in = new FileInputStream(file);
+            in = new BufferedInputStream(new FileInputStream(file));
         }
 
         return new ServletInputStream() {
Add a comment
List