Clone with better performance

前端 未结 8 2399
一整个雨季
一整个雨季 2020-12-14 04:29

I want to create deep copy method and I found 3 ways to execute it

1-deep copy with pass each property 1 by 1

2-using reflection

3-using serializatio

8条回答
  •  孤街浪徒
    2020-12-14 04:56

    Sounds like you've done the hard work of finding the ways to do it, so now you'll have to test them all in your specific situation and find out.

    For the most part, it really depends on what data you're serializing

提交回复
热议问题