Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9982817E53 for ; Tue, 17 Mar 2015 06:58:41 +0000 (UTC) Received: (qmail 84957 invoked by uid 500); 17 Mar 2015 06:58:40 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 84781 invoked by uid 500); 17 Mar 2015 06:58:40 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 84710 invoked by uid 99); 17 Mar 2015 06:58:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Mar 2015 06:58:39 +0000 Date: Tue, 17 Mar 2015 06:58:39 +0000 (UTC) From: "Carsten Ziegeler (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (FELIX-3635) Unnecessary processing in DirectoryWatcher MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FELIX-3635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carsten Ziegeler closed FELIX-3635. ----------------------------------- > 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 > Assignee: Guillaume Nodet > Fix For: fileinstall-3.2.6 > > 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 was sent by Atlassian JIRA (v6.3.4#6332)