You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Dominik Przybysz (Jira)" <ji...@apache.org> on 2026/09/20 20:11:00 UTC

[jira] [Closed] (ARIES-1612) Zip input stream relies on default (non buffered) InputStream read

     [ https://issues.apache.org/jira/browse/ARIES-1612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dominik Przybysz closed ARIES-1612.
-----------------------------------

Closing for released artifact

> Zip input stream relies on default (non buffered) InputStream read
> ------------------------------------------------------------------
>
>                 Key: ARIES-1612
>                 URL: https://issues.apache.org/jira/browse/ARIES-1612
>             Project: Aries
>          Issue Type: Bug
>          Components: Util
>    Affects Versions: util-1.1.1
>            Reporter: Paul Thevenot
>            Assignee: Tom Watson
>            Priority: Major
>             Fix For: util-1.1.2
>
>
> 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



--
This message was sent by Atlassian Jira
(v8.20.10#820010)