Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1612

Zip input stream relies on default (non buffered) InputStream read

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • util-1.1.1
    • util-1.1.2
    • Util
    • None

    Description

      We have performances issues on application startup. It takes a while to install all the bundles of a subsystem. After a quick look with JProfiler, we saw that the SpecialZipInputStream.read() was invoked 44 millions times during startup.
      We're using the Felix framework and the BundleCache.copyStreamToFile calls the method read(byte[] b) from the InputStream. Unfortunately, the method read(byte[] b) and read(byte[] b, int off, int len) are not overriden by the SpecialZipInputStream (thus we don't buffer the read).
      Completing the decoration in the SpecialZipInputStream solved this problem and divided the startup time by two.

      I've made the pull request with the requested change https://github.com/apache/aries/pull/55

      Attachments

        Issue Links

          Activity

            People

              tjwatson Tom Watson
              PaulT13 Paul Thevenot
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: