ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ajmas <...@git.apache.org>
Subject [GitHub] ant pull request: increase buffer size to improve transfer speed
Date Wed, 22 Apr 2015 11:35:05 GMT
Github user ajmas commented on a diff in the pull request:

    https://github.com/apache/ant/pull/8#discussion_r28864296
  
    --- Diff: src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java ---
    @@ -36,7 +36,7 @@
     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;
    --- End diff --
    
    Any reason you don't make BUFFER = HUNDRED_KILOBYTES, since that constant is defined just
above?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message