On 2/12/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
hmmm
so if you have something like this

class A {}
class B { private A a; private A aprime; }

when you serialize B does it write the class header for A once or twice?
because i think that header has the classname so it would be output twice
no? last time i checked the header was a bit over 100bytes. so if it does
write it twice and you keep a local toc then you save yourself that second
100+ byte class header

AFAIK, JDK's serialization writes headers once and then references.

Eelco

Reply via email to