MyFaces Trinidad
  1. MyFaces Trinidad
  2. TRINIDAD-2046

Copying data from inputStream to OuputStream needs appropriate buffer size

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.14-core , 2.0.0-beta-2
    • Fix Version/s: None
    • Component/s: Components
    • Labels:

      Description

      In the files

      ./trinidad-1.2.14/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/image/cache/FileSystemImageCache.java line:955
      ./trinidad-1.2.14/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/image/painter/ImageUtils.java line:303

      The buffer size is fixed as 1024 bytes. With the size of the data varies, the performance can be damaged a lot.

      We need an appropriate buffer size which depends on the size of the data to be copied.

      This is the same as the Appache Bug (https://issues.apache.org/bugzilla/show_bug.cgi?id=32546)

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Xiaoming Shi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development