Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 16C029E86 for ; Fri, 30 Mar 2012 13:42:53 +0000 (UTC) Received: (qmail 26027 invoked by uid 500); 30 Mar 2012 13:42:52 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 25877 invoked by uid 500); 30 Mar 2012 13:42:51 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 25869 invoked by uid 99); 30 Mar 2012 13:42:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Mar 2012 13:42:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Mar 2012 13:42:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D56B934EFEB for ; Fri, 30 Mar 2012 13:42:29 +0000 (UTC) Date: Fri, 30 Mar 2012 13:42:29 +0000 (UTC) From: "Sagara Gunathunga (Commented) (JIRA)" To: java-dev@axis.apache.org Message-ID: <1092932984.37806.1333114949890.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <763910792.15855.1299982860152.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (AXIS2-4978) Copying data from inputStream to OuputStream needs appropriate buffer size MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-4978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13242331#comment-13242331 ] Sagara Gunathunga commented on AXIS2-4978: ------------------------------------------- Patch available on r1307411. > Copying data from inputStream to OuputStream needs appropriate buffer size > -------------------------------------------------------------------------- > > Key: AXIS2-4978 > URL: https://issues.apache.org/jira/browse/AXIS2-4978 > Project: Axis2 > Issue Type: Bug > Components: modules > Affects Versions: 1.5.4 > Reporter: Xiaoming Shi > Priority: Minor > Attachments: AXIS2-4978.patch > > > In the file > ./axis2-1.5.4/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/wizardframe/WizardFrame.java line:323 > The buffer size is fixed at 1024 bytes. > To copy 10M data with 1024-byte buffer it takes 338,591,180 nano-second, while it takes 105,384,689 nano-second with a 10240-byte buffer. > Similar code can be found at: > ./axis2-1.5.4/modules/kernel/src/org/apache/axis2/util/IOUtils.java > ./axis2-1.5.4/modules/kernel/src/org/apache/axis2/classloader/IoUtil.java > ./axis2-1.5.4/modules/kernel/src/org/apache/axis2/classloader/JarResourceLocation.java > ./axis2-1.5.4/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/wizardframe/WizardFrame.java > This is similar to the Apache Bug https://issues.apache.org/bugzilla/show_bug.cgi?id=32546 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org