Bug 90506 - Reduce duplication caused by mulitple equal strings
Summary: Reduce duplication caused by mulitple equal strings
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.1 M6   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2005-04-06 14:13 EDT by John Arthorne CLA
Modified: 2005-04-06 15:22 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2005-04-06 14:13:59 EDT
The workspace tree holds a String for the name of each resource in the
workspace.  When there are multiple resources in the workspace with the same
name, the strings could be shared between the resources.
Comment 1 John Arthorne CLA 2005-04-06 14:42:02 EDT
This has been released.  The main advantage is sharing the names of the CVS
metadata directory and associated files.  This is present for every folder in
each project shared with CVS.  In my large self-hosting workspace, this saves
over 3MB of heap space.
Comment 2 John Arthorne CLA 2005-04-06 15:22:07 EDT
Note that the fix was not just sharing resource names.  We now periodically walk
the entire workspace tree and share duplicates of just above every string we
hold.  This includes session priorities, marker keys and attributes, and
resource names.