Re: Efficient hashmap serialization?
- From: "Sn0tters@xxxxxxxxxxx" <Sn0tters@xxxxxxxxxxx>
- Date: 2 Sep 2005 11:50:38 -0700
I told a slight lie, it's a HashTable
private Hashtable<Double, Message> Messages = new Hashtable<Double,
Message>();
The Message object has a load of elements,
private double postNumber = 0;
private LinkTag postName;
private ImageTag postIcon;
private Text subject = null;
private List<AbstractNode> text = null;
private List<Tag> postAppeal = null;
private Identity poster = null;
private Date date = null;
private HashMap<Double,RawMessage> nextInThread = new
HashMap<Double,RawMessage>();
private RawMessage previousInThread = null;
My main worry is that each object is being serialized many times, think
of this example:
Objects A & B are in the hashtable
Both objects reference each other.
When A is serialized the reference to B serializes B
When B is serialized the reference to A serializes A
Is this a valid assumption?
readObject and writeObject methods are my number one optimization I'm
think of.
Thanks
Wil
.
- Follow-Ups:
- Re: Efficient hashmap serialization?
- From: Raymond DeCampo
- Re: Efficient hashmap serialization?
- From: Roedy Green
- Re: Efficient hashmap serialization?
- From: jan V
- Re: Efficient hashmap serialization?
- References:
- Efficient hashmap serialization?
- From: Sn0tters@xxxxxxxxxxx
- Re: Efficient hashmap serialization?
- From: jan V
- Efficient hashmap serialization?
- Prev by Date: Bug tracking system recommendation
- Next by Date: Re: What´s needed to run an applet?
- Previous by thread: Re: Efficient hashmap serialization?
- Next by thread: Re: Efficient hashmap serialization?
- Index(es):