中级农民
- 积分
- 102
- 大米
- 颗
- 鳄梨
- 个
- 水井
- 尺
- 蓝莓
- 颗
- 萝卜
- 根
- 小米
- 粒
- 学分
- 个
- 注册时间
- 2010-12-1
- 最后登录
- 1970-1-1
|
|
not quite sure. I think shallow copy is something like "memcopy" in C. And deep copy does a bit more than that. Most of time they both work. And memorycopy is most of time the fastest. However, there're objs that contain something sitting out of them and shallow copy will fail in that setting. So It depends on the content of the objs u re copying. |
|