]
Viacheslav Kabanovich updated JBIDE-9785:
-----------------------------------------
Attachment: jsf-example-new.xml
File storage for KB model is too big.
-------------------------------------
Key: JBIDE-9785
URL:
https://issues.jboss.org/browse/JBIDE-9785
Project: Tools (JBoss Tools)
Issue Type: Enhancement
Components: CDI, common/jst/core
Affects Versions: 3.3.0.M3
Reporter: Viacheslav Kabanovich
Assignee: Viacheslav Kabanovich
Fix For: 3.3.0.M4, LATER
Attachments: jsf-example-new.xml, jsf-example-old.xml
File
%workspace%/.metadata/.plugins/org.jboss.tools.jst.web.kb/projects/%project_name%.xml
keeps serialized KB model and linked resources detected by CDI and other builders and
validators. The file is an easy readable xml, but it is too long.
1) Tag libraries are saved in such details that only those loaded from standard.jar take
as much as 100K of memory. At the same time, when KB project is restored at Eclipse start,
KB model is being bound to underlying XModel so that the serialized objects do not provide
any advantage comparing to direct loading from XModel. Therefore, we should serialize only
first-level link between tag library and XModel file object.
2) Linked resources include full path references, each may be repeated many times. I
suggest generating short alias for each path, then the table for linking alias to path
will reference each of them just once, and the list of linked resources will reference
short aliases only.
These two suggestions will reduce the file storage 3-5 times.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: