Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8158748

Speedup creation of nio.zipfs.ZipPath + performance regression from JDK-8061777

    Details

    • Type: Bug
    • Status: Open
    • Priority: P5
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Introduced In Version:
      9

      Description

      Since bug JDK-8061777 there is a performance regression for non-UTF-8 charsets.
      This could be additionally painful when the creation of ZipPaths becomes looped by ZipFileSystem#iteratorOf().
      At least, for single-byte charsets, the former performance could be regained simply by replacing ZipCoder.isUtf8 by something like ZipCoder.isSingleByte.
      Further more improvements are possible, please follow: http://mail.openjdk.java.net/pipermail/core-libs-dev/2016-May/041559.html

      Furthermore:
      - consider subclassing ZipCoder from j.n.c.Charset
      - consider benefit from bug JDK-6695386

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sherman Xueming Shen
                Reporter:
                ulfzibis Ulf Zibis
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: