Forums Register Login

Serializations vs XML

+Pie Number of slices to send: Send
Hi,
I need to store some properties of an object before closing the application. We were writing the values into an XML file and the same is being read on restarting the application. My question is like, will be there any performance improvement if I write the object to a file using "ObjectOutputStream" etc.?
Kindly share your suggestions also the points to be considered while taking this kind of decisions.

Thanks in advance.
+Pie Number of slices to send: Send
That's an interesting question. For example Xstream library is very fast while parsing a file.
The best solution it to test both XML parsing and Java Serialization. Then you will be able to compare the times.
Friends help you move. Good friends help you move bodies. This tiny ad will help:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 583 times.
Similar Threads
Deployement Error -- Very Arjunt
JavaBean and JSP.
Java and XML
Converting a DTO object to an XML File
Quickest way to create objects from XML....
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 15:52:14.