[Framework] Bundle cache implementation could do a better job of avoiding disk 
access
-------------------------------------------------------------------------------------

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


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.

Reply via email to