You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Karl Pauls (JIRA)" <ji...@apache.org> on 2017/04/27 12:18:04 UTC

[jira] [Commented] (FELIX-5589) reduce memory usage of BundleRequirementImpl / BundleCapabilityImpl

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

Karl Pauls commented on FELIX-5589:
-----------------------------------

I did a similar fix for the ImmutableList in r1792870.

> reduce memory usage of BundleRequirementImpl / BundleCapabilityImpl
> -------------------------------------------------------------------
>
>                 Key: FELIX-5589
>                 URL: https://issues.apache.org/jira/browse/FELIX-5589
>             Project: Felix
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: framework-5.6.2
>            Reporter: Fabian Lange
>            Assignee: Karl Pauls
>            Priority: Minor
>             Fix For: framework-5.6.4
>
>         Attachments: Screen Shot 2017-03-13 at 19.52.55.png
>
>
> Currently BundleRequirementImpl and BundleCapabilityImpl might allocate new immutable maps when params are empty. This was pointed out by a profiling session.
> the fix is easy: use Collections.EMPTY_MAP
> (pr coming)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)