[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-9785) File storage for KB model is too big.

Denis Golovin (JIRA) jira-events at lists.jboss.org
Tue Sep 27 18:25:27 EDT 2011


     [ https://issues.jboss.org/browse/JBIDE-9785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Denis Golovin updated JBIDE-9785:
---------------------------------

    Fix Version/s: LATER


I don't sink that we need to hurry here with solution, lets see what is inside of the file. Slava, please attach an example. For now I mark it for two versions: 3.3.0.M4 and LATER.

> 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
>
>
> 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: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list