|
|
Optimize with a SATA RAID Storage Solution
Range of capacities as low as $1250 per TB. Ideal if you currently rely on servers/disks/JBODs
Page 3 of 3
Out of curiosity, I instrumented the java.io.ObjectStreamClass just to see how much time that initial SUID computation takes: this cost turned out to range from 5 to 50 milliseconds in
my experiments. This is not a trivial amount to try to save in general, but again, if this is your application's bottleneck,
then something is very wrong with your overall design.
As it has been said time and time again, you should always profile your application first and optimize the actual hot spots
found. Explicitly versioning a class via serialVersionUID requires more code maintenance and is more error prone. There are many valid reasons for using serialVersionUID (protecting against compiler differences, establishing backward serialization compatibility, etc.), but performance is not
one of them.
Archived Discussions (Read only)