felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-2619) [Framework] Bundle cache is rechecking nonexistent files again and again
Date Mon, 04 Oct 2010 20:16:36 GMT

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

Richard S. Hall commented on FELIX-2619:
----------------------------------------

Patch 1003559 was rolled back for now.

> [Framework] Bundle cache is rechecking nonexistent files again and again
> ------------------------------------------------------------------------
>
>                 Key: FELIX-2619
>                 URL: https://issues.apache.org/jira/browse/FELIX-2619
>             Project: Felix
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: framework-3.0.3
>            Reporter: Richard S. Hall
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: framework-3.0.4
>
>
> The bundle archive implementation tries to limit disk accesses by only reading variables
from the disk the first time and the caching the result. In some cases, though, it is not
too smart. Like in BundleArchive.getRefreshCount() where it checks if a file exists and if
not then simply returns the default value. This means all default values will incur a disk
access to check for file existence. It should cache the default value after first read too,
to avoid future disk accesses.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message