This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Serializations vs XML  RSS feed

 
Srinivas Kothuri
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!