1.

Does Having Serialversionuid Variable Improve Java Serialization Performance?

Answer»

Declaring a SERIALVERSIONUID field in a Java class saves CPU TIME the first time the JVM process serializes a given Class. However the performance gain is not very significant, In case when you have not declared the serialVersionUID its value is computed by JVM once and subsequently KEPT in a soft cache for future use.

Declaring a serialVersionUID field in a Java class saves CPU time the first time the JVM process serializes a given Class. However the performance gain is not very significant, In case when you have not declared the serialVersionUID its value is computed by JVM once and subsequently kept in a soft cache for future use.



Discussion

No Comment Found