felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabian Lange (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-5589) reduce memory usage of BundleRequirementImpl / BundleCapabilityImpl
Date Mon, 13 Mar 2017 19:02:41 GMT

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

Fabian Lange commented on FELIX-5589:
-------------------------------------

of course this is not a big improvement, but your milage might vary depending on installed
bundles. but since the change is trivial, I would love to see it picked up.

> 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
>            Reporter: Fabian Lange
>            Priority: Minor
>         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)

Mime
View raw message