• Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting serialVerionUID for performance  RSS feed

 
Leslie Chaim
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read in the Java RMI book by William Grosso that setting you own versioning scheme can quote surprisingly improve performance even if you just implement Serializable.
Does anyone have some stats or facts of this. I saw the article and statistics onIMPROVING SERIALIZATION PERFORMANCE WITH EXTERNALIZABLE, but I was wondering for some statistics on just setting you own serialVersionUID.
The author explains that without the serialVersionUID set, the default serialization mechanism has to compute a unique value which takes time.
My question, how much time?
Thanks in advance,
Leslie
 
Van Glass
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to a JavaWorld article the performance increase is a myth. See the following article
http://www.javaworld.com/javaworld/javaqa/2003-06/02-qa-0627-mythser.html?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!