felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (FELIX-4810) Cache WeakZipFile#entries
Date Mon, 09 Mar 2015 06:49:38 GMT

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

Carsten Ziegeler closed FELIX-4810.
-----------------------------------

> Cache WeakZipFile#entries
> -------------------------
>
>                 Key: FELIX-4810
>                 URL: https://issues.apache.org/jira/browse/FELIX-4810
>             Project: Felix
>          Issue Type: Improvement
>          Components: Framework
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>             Fix For: framework-4.6.1
>
>         Attachments: FELIX-4810.patch
>
>
> The WeakZipFile#entries() method is used in several places when there's a need to iterate
through bundle resources.
> That can happen quite a lot of times if there are multiple extenders.
> Caching this value would allow:
>   * avoid scanning all bundles multiple times, especially when they are resolved / started
>   * given it mostly happen when the bundle is resolved or started, using a SoftReference
makes sense to not consume memory while still providing a good caching behaviour



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message