Speeding up java deep copy operations

前端 未结 2 922
终归单人心
终归单人心 2020-12-10 17:58

We have implemented a general purpose deep copy mechanism using serialization.

import java.io.*;

public class CopyUtil {

    public static Object clone(Obj         


        
2条回答
  •  借酒劲吻你
    2020-12-10 18:28

    You may want to check out Deep Cloning Library. I don't know how it's implemented, but you may find it's a faster solution.

    Although it doesn't address speed, this question has some relevant resources that would be worth investigating.

提交回复
热议问题