felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FELIX-4811) Optimize ConfigurationManager#listConfigurations
Date Fri, 27 Feb 2015 15:34:04 GMT

     [ https://issues.apache.org/jira/browse/FELIX-4811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Guillaume Nodet updated FELIX-4811:
-----------------------------------
    Attachment: yourkit.png

> Optimize ConfigurationManager#listConfigurations
> ------------------------------------------------
>
>                 Key: FELIX-4811
>                 URL: https://issues.apache.org/jira/browse/FELIX-4811
>             Project: Felix
>          Issue Type: Improvement
>          Components: Configuration Admin
>    Affects Versions: configadmin-1.8.0
>            Reporter: Guillaume Nodet
>         Attachments: yourkit.png
>
>
> The ConfigurationManager#listConfigurations is far from optimal.
> It iterates on all configurations, thereby creating a copy of the properties for each
configuration.   Then, for each configuration, filter#match() is called, which itself create
a case insentive copy of the properties for matching.
> If you have quite a lot of configurations and quite a lof of SCR components, it can be
quite time consuming.
> Attached is a YourKit profile view which shows that 90% of the time is spent into copying
properties for nothing. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message