[
https://issues.apache.org/jira/browse/FELIX-1534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Richard S. Hall closed FELIX-1534.
----------------------------------
Resolution: Fixed
Fragment merging now happens at install time, not resolve time. No longer
acquire global lock to check dynamic imports.
> Improve fragment merging
> ------------------------
>
> Key: FELIX-1534
> URL: https://issues.apache.org/jira/browse/FELIX-1534
> Project: Felix
> Issue Type: Improvement
> Components: Framework
> Affects Versions: felix-2.0.0
> Reporter: Richard S. Hall
> Assignee: Richard S. Hall
> Fix For: felix-2.0.2
>
>
> Currently, the framework attempts to merge fragments each time it is going to
> resolve bundles. There are some drawbacks to this approach.
> First, it is not good from a performance perspective. The framework keeps
> re-merging all fragments on each resolve whether they are needed or not.
> Second, since resolves happen in different places (e.g., when resolving a
> bundle and when resolving a dynamic import) we have to remember to do the
> merging in multiple places. This also creates a performance issue around
> dynamic imports, which required a hack to avoid merging if not needed when
> dynamically importing (see FELIX-1435).
> The current approach doesn't actually clean up the merged fragments either,
> which can lead to some issues too. However, we could potentially turn this
> into a feature. Instead of the current approach, we could merge fragments as
> bundles are installed. This would help with performance issues as well as
> consistency issues (see again FELIX-1435).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.