[jdom-interest] JDom-Dokument: Serialized oversized
Joseph Bowbeer
jozart at csi.com
Fri May 4 11:26:29 PDT 2001
Sven Behrens writes:
> I hoped a JDOM-Document in a serialized form could be more
> compact. However, the result of a very short test was, that a
> serialized JDOM-Document is about twice as large as the original
> XML-Document
See the "TODO serialization [eg]" thread in April.
http://lists.denveronline.net/lists/jdom-interest/2001-April/005659.html
> There is a "serialization" item in the TODO list already. This
> information supplements that item.
>
> 2. Custom serialized form. We should create a custom serialized
> form rather than using the default serialized form. The default
> serialized form is generally a poor choice (except for simple "data"
> classes) because it allows the implementation details to leak-out into
> the public. Therefore it's usually best to declare every field transient
> and code your own custom serialized form. In addition to hiding
> implementation details, a custom serialized form can be more efficient
> in both space and time.
More information about the jdom-interest
mailing list