Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-4978

Copying data from inputStream to OuputStream needs appropriate buffer size

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.4
    • None
    • modules
    • None

    Description

      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

      Attachments

        1. AXIS2-4978.patch
          10 kB
          Ranjana Prasad

        Activity

          People

            Unassigned Unassigned
            nancyesmis Xiaoming Shi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: