Win a copy of Kotlin in Action this week in the Kotlin 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!