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

Jarek Gawor updated FELIX-3635:
-------------------------------

    Attachment: FELIX-3635.patch

Patch for this issue that only calls findBundlesWithOptionalPackagesToRefresh() 
if there were any actual bundles installed, modified, or updated.

                
> Unnecessary processing in DirectoryWatcher
> ------------------------------------------
>
>                 Key: FELIX-3635
>                 URL: https://issues.apache.org/jira/browse/FELIX-3635
>             Project: Felix
>          Issue Type: Bug
>          Components: File Install
>    Affects Versions: fileinstall-3.2.4
>            Reporter: Jarek Gawor
>         Attachments: FELIX-3635.patch
>
>
> When a DirectoryWatcher is setup to only watch configuration files (e.g. 
> *.cfg), on each scan findBundlesWithOptionalPackagesToRefresh() is called. 
> Since only configuration can change - no bundles, there is no need to call 
> findBundlesWithOptionalPackagesToRefresh(). And the 
> findBundlesWithOptionalPackagesToRefresh() can be expensive since it goes 
> through all bundles in the framework looking for optional imports that can be 
> now satisfied.

--
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