ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject [2/6] ant git commit: increase buffer size to improve transfer speed
Date Sat, 25 Apr 2015 12:10:46 GMT
increase buffer size to improve transfer speed

1024 byte buffer size is insufficient for transfering large files over faster (> 100Mbit)
networks. We are transfering files tens or hundreds MB in size and transfer speed was 1MB/s.
After increasing the buffer size too 100KB we are getting transfer speeds up to 60MB/s. Please
consider increasing the BUFFER_SIZE in the next Ant release. Thanks, Peter

Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/815a36f5
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/815a36f5
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/815a36f5

Branch: refs/heads/master
Commit: 815a36f52f2e1a2211b58d7eab31cdcb97709dee
Parents: f22352a
Author: pkures <pkures@gmail.com>
Authored: Wed Apr 22 13:05:25 2015 +0200
Committer: pkures <pkures@gmail.com>
Committed: Wed Apr 22 13:05:25 2015 +0200

----------------------------------------------------------------------
 .../org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/815a36f5/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java
index c1b6b8c..5d4271d 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java
@@ -36,7 +36,7 @@ import com.jcraft.jsch.Session;
 public class ScpToMessage extends AbstractSshMessage {
 
     private static final int HUNDRED_KILOBYTES = 102400;
-    private static final int BUFFER_SIZE = 1024;
+    private static final int BUFFER_SIZE = 100*1024;
 
     private File localFile;
     private String remotePath;


Mime
View raw message