IntelliJ Java IDE
The moose likes Java in General and the fly likes clonging vs. serialization vs. copy constructor Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "clonging vs. serialization vs. copy constructor" Watch "clonging vs. serialization vs. copy constructor" New topic
Author

clonging vs. serialization vs. copy constructor

karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
hi
i wonder if there are any performance comparisons between cloning, serialiaztion andc copy constructor when using for clongin an object ???
k
karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
hi all
i found some answers myself (well is should have asked google first before bothering you)...
bruce eckels "thinking in java" has a comparison of serialization and cloning:
clonining of a simple object took about 110msecs while serialization-clonging took about 3000msecs.
k
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521

However I STILL want to know about clonging .


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
 
subject: clonging vs. serialization vs. copy constructor
 
Threads others viewed
Cloneable vs. copy constructor
() vs []
Constructor vs instance initializer
Deep copy vs. shallow copy
Socket vs URL
developer file tools