[
https://issues.apache.org/jira/browse/FELIX-3447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249947#comment-13249947
]
Richard S. Hall edited comment on FELIX-3447 at 4/9/12 4:50 PM:
----------------------------------------------------------------
Still not clear to me how this will impact real-world scenarios, but I guess
every little bit helps.
I fixed some bugs around the remove() operations of the immutable list, since
they always didn't throw UnsupportedOperationException (seems like a design
issue with AbstractCollection). Is is possible that the immutable map has
similar issues, but I didn't look into it since it wasn't causing any CT
failures.
Please close if you are satisfied.
was (Author: rickhall):
Still not clear to me how this will impact real-world scenarios, but I
guess every little bit helps.
I fixed some bugs around the remove() operations of the immutable list, since
they always didn't throw UnsupportedOperationException (seems like a design
issue with AbstractCollection).
Please close if you are satisfied.
> 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
> Assignee: Richard S. Hall
> 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