Uploaded image for project: 'Commons FileUpload'
  1. Commons FileUpload
  2. FILEUPLOAD-207

enhance file read/write performance

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.2
    • 1.3
    • CentOS 5.5

    Description

      Class: org.apache.commons.fileupload.disk.DiskFileItem
      Method: write(File file)
      Line: 422

      Modification:
      decorates the FileOutputStream with BufferedOutputStream (line: 424~426)

      Method: get()
      Line: 331

      Modification:
      decorates the FileInputStream with BufferedInputStream (line: 340~342)

      for method write, this change will have 2 times of speed-up.

      Attachments

        1. DiskFileItem.java
          24 kB
          frank

        Activity

          People

            simone.tripodi Simone Tripodi
            surfie frank
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified