Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix cloning operations to not create needless objects #9
As it stands, the amount of cloning in the Core spec would create a number of extra (needless?) objects, as each clone of a Mon would create a new Species instead of simply using the existing one.
When cloning foreign non-Actor objects, only one clone should ever be made for any given id, and it should just be updated/replaced when a new clone needs to be made. The original source object—in its entirety—can be stored in the
(The spec should be updated to clarify that local non-Actor objects need not be cloned.)