• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Setting serialVerionUID for performance

 
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic