You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2015/04/25 14:10:45 UTC

[1/6] ant git commit: increase buffer size to improve transfer speed

Repository: ant
Updated Branches:
  refs/heads/master 5ebe69330 -> 1ee66cbe7


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/e145abe0
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/e145abe0
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/e145abe0

Branch: refs/heads/master
Commit: e145abe054a01e45f56b82a97638e9357e05648e
Parents: f22352a
Author: pkures <pk...@gmail.com>
Authored: Wed Apr 22 13:04:14 2015 +0200
Committer: pkures <pk...@gmail.com>
Committed: Wed Apr 22 13:04:14 2015 +0200

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


http://git-wip-us.apache.org/repos/asf/ant/blob/e145abe0/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpFromMessage.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpFromMessage.java b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpFromMessage.java
index 44b058d..b6d4737 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpFromMessage.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpFromMessage.java
@@ -42,7 +42,7 @@ public class ScpFromMessage extends AbstractSshMessage {
 
     private static final int HUNDRED_KILOBYTES = 102400;
     private static final byte LINE_FEED = 0x0a;
-    private static final int BUFFER_SIZE = 1024;
+    private static final int BUFFER_SIZE = 100*1024;
 
     private String remoteFile;
     private File localFile;


[3/6] ant git commit: Merge commit 'refs/pull/8/head' of https://github.com/apache/ant

Posted by bo...@apache.org.
Merge commit 'refs/pull/8/head' of https://github.com/apache/ant


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

Branch: refs/heads/master
Commit: 8ce81aa2407fce8de30a91f6fa33e6f4c4383ffb
Parents: 5ebe693 815a36f
Author: Stefan Bodewig <bo...@apache.org>
Authored: Sat Apr 25 14:02:49 2015 +0200
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Sat Apr 25 14:02:49 2015 +0200

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



[2/6] ant git commit: increase buffer size to improve transfer speed

Posted by bo...@apache.org.
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 <pk...@gmail.com>
Authored: Wed Apr 22 13:05:25 2015 +0200
Committer: pkures <pk...@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;


[6/6] ant git commit: increase buffer size for Submitted by Petr Kureš @pkures closes #8 and closes #9

Posted by bo...@apache.org.
increase buffer size for <scp>
Submitted by Petr Kureš @pkures
closes #8 and closes #9


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

Branch: refs/heads/master
Commit: 1ee66cbe7f644d00e8a96ea6ba967363a38bc800
Parents: 94f9722
Author: Stefan Bodewig <bo...@apache.org>
Authored: Sat Apr 25 14:09:27 2015 +0200
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Sat Apr 25 14:09:27 2015 +0200

----------------------------------------------------------------------
 CONTRIBUTORS     | 1 +
 WHATSNEW         | 4 ++++
 contributors.xml | 4 ++++
 3 files changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/1ee66cbe/CONTRIBUTORS
----------------------------------------------------------------------
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 564ce67..0a0d0fb 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -296,6 +296,7 @@ Peter Doornbosch
 Peter Hulst
 Peter Janes
 Peter Reilly
+Petr Kureš
 Phil Hanna
 Philip Hourihane
 Phillip Wells

http://git-wip-us.apache.org/repos/asf/ant/blob/1ee66cbe/WHATSNEW
----------------------------------------------------------------------
diff --git a/WHATSNEW b/WHATSNEW
index 1372212..d617795 100644
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -117,6 +117,10 @@ Other changes:
  * MailLogger can now add CC and BCC addresses.
    Bugzilla Report 57789.
 
+ * <scp>'s buffer size has been increased from 1k to 100k to match
+   <ftp> and <get>.
+   github pull requests #8 and #9
+
 Changes from Ant 1.9.3 TO Ant 1.9.4
 ===================================
 

http://git-wip-us.apache.org/repos/asf/ant/blob/1ee66cbe/contributors.xml
----------------------------------------------------------------------
diff --git a/contributors.xml b/contributors.xml
index 299cee8..d7c7162 100644
--- a/contributors.xml
+++ b/contributors.xml
@@ -1202,6 +1202,10 @@
     <last>Reilly</last>
   </name>
   <name>
+    <first>Petr</first>
+    <last>Kureš</last>
+  </name>
+  <name>
     <first>Phil</first>
     <last>Hanna</last>
   </name>


[5/6] ant git commit: Merge branch 'pr'

Posted by bo...@apache.org.
Merge branch 'pr'


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

Branch: refs/heads/master
Commit: 94f972232e600b8389e16f0325eb6500c207ded0
Parents: 8ce81aa 446f144
Author: Stefan Bodewig <bo...@apache.org>
Authored: Sat Apr 25 14:03:56 2015 +0200
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Sat Apr 25 14:03:56 2015 +0200

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



[4/6] ant git commit: Merge commit 'refs/pull/9/head' of https://github.com/apache/ant into pr

Posted by bo...@apache.org.
Merge commit 'refs/pull/9/head' of https://github.com/apache/ant into pr


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

Branch: refs/heads/master
Commit: 446f1442c76fd95a3a1e614e853659696883f624
Parents: 815a36f e145abe
Author: Stefan Bodewig <bo...@apache.org>
Authored: Sat Apr 25 14:03:38 2015 +0200
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Sat Apr 25 14:03:38 2015 +0200

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