[
https://issues.apache.org/jira/browse/FELIX-3447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249231#comment-13249231
]
Guillaume Nodet commented on FELIX-3447:
----------------------------------------
The two screenshots clearly show that the relative cpu usage of the maps have
been greatly reduced (divided by 2) during resolution.
The use of a fast map is critical in the resolution process and maybe the
HashMap#put could be optimized too by using a faster map implementation.
> Optimize read only collections by using a specific class and not a wrapper
> which is slower
> ------------------------------------------------------------------------------------------
>
> Key: FELIX-3447
> URL: https://issues.apache.org/jira/browse/FELIX-3447
> Project: Felix
> Issue Type: Improvement
> Components: Framework
> Affects Versions: framework-4.0.2
> Reporter: Guillaume Nodet
> Priority: Minor
> Fix For: framework-4.2.0
>
> Attachments: FELIX-3447.patch, felix-screen-01.png,
> felix-screen-02.png
>
>
> The unmodifiable collection wrappers are .. wrappers and as such add a
> slight overhead.
> In the case of felix, the resolution process does use a lot of those maps for
> bundle capabilities and requirements and the overhead tends to become non
> negligible.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira