Bug 12416 - Separate caching of project and pkg fragment root from caching of openables
Summary: Separate caching of project and pkg fragment root from caching of openables
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: 2.0 M5   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-28 06:46 EST by Jerome Lanneluc CLA
Modified: 2002-03-29 04:49 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jerome Lanneluc CLA 2002-03-28 06:46:08 EST
Build 20020326

The Java Model caches project info and package fragment root infos in the same 
LRU cache as other openables. They should be cached in a Hashtable as we don't 
want them to be ever flushed.

In the meantime, we should decrease the default size of the LRU cache.
Comment 1 Jerome Lanneluc CLA 2002-03-29 04:49:08 EST
Added new class JavaModelCache that centralizes all the caching. This cache 
uses different table:
- a HashMap for projects and pkg fragement roots
- an ElementCache for packages
- an ElementCache for compilation units and classes
- a HashMap for children of compilation units and classes