5/26/2005

Faster Deep Copy Using Serialization

JavaTechniques | Faster Deep Copy of Java Objects presents a trick to make deep copy using serialization faster. The author provides FastByteArrayOutputStream and FastByteArrayInputStream which speed up the copy. However, the performance gain provided still doesn't put the technique on par with writing your own deep copy.

If you haven't guessed. I'm trying to avoid writing a deep copy method. :-)

No comments: