[ 
https://issues.apache.org/jira/browse/FELIX-3447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13248391#comment-13248391
 ] 

Guillaume Nodet commented on FELIX-3447:
----------------------------------------

I did use Youkit Profiler to find out this possible optimization.  I don't 
recall exactly, but that was the main thing that could easily be improved 
without changing the algorithm.
Another one was case-insensitive searches but i couldn't find any good solution 
for that.
                
> 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
>
>
> 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

        

Reply via email to