Community
Participate
Working Groups
I20060223-1656 After running for about a day, I made a memory snapshot of my development Eclipse (ZRH plugins in source, dependencies imported as binary). I saw that the strings in AccessRuleSet#messageTemplates take about 3.4 MB together. I found e.g. 59 distinct instances of the same string "The type {0} is not accessible due to restriction on required library org.eclipse.jface/org.eclipse.jface_3.2.0_I20060216-1600.jar", which together use 17KB. Since these strings seem to occur in patterns, they should probably be interned or otherwise reused.
Indeed, these should be interned.
Changed ClasspathEntry#getMessageTemplates() and State#readRestriction(DataInputStream) to use JavaModelManager#intern(String)
Verified for 3.2M6 using build I20060327-0010.