Bug 27302 - [resources] Session properties in memory
Summary: [resources] Session properties in memory
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.1 M5   Edit
Assignee: DJ Houghton CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2002-11-28 07:57 EST by DJ Houghton CLA
Modified: 2003-01-22 18:14 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DJ Houghton CLA 2002-11-28 07:57:15 EST
We should look at session properties in memory.
I believe that they are currently stored as a HashMap.
We should investigate using an array for a small number and then using a 
HashMap for a larger number.
Comment 1 DJ Houghton CLA 2002-11-29 16:33:32 EST
We might be able to refactor the code for MarkerSet and use this.
Comment 2 DJ Houghton CLA 2003-01-21 13:39:30 EST
MarkerAttributeMap is the class to use.
Consider renaming this class and moving it into the utils package.
Comment 3 DJ Houghton CLA 2003-01-21 15:34:55 EST
The MarkerAttributesMap class makes an assumption that the keys are Strings and
it also interns these strings in the code. Rather than messing with this code
since it has been modified to be as performant as possible, I have copied the
class to the utils package and changed it to accept Object keys so it can be
used with session properties and sync info. (which both use QualifiedNames as keys)
Comment 4 DJ Houghton CLA 2003-01-22 18:14:55 EST
Fixed and ran with JARs for a couple of days
Released into HEAD.