richardlord/xember — comment on commit a4befba3092cd7ac9eef266d8380898828496350
File:  line 0
By richardlord:

Alec. I had a sudden thought, ran a few tests, and the speed of the ByteArray method is dependent on the complexity of the object being cloned. My earlier tests were with simple properties like numbers and strings. If a component has more complex properties, like a sprite, then the ByteArray method is a lot slower than using describeType. describeType, on the other had, seems to have consistent speed regardless of the nature of the properties. Which is why I replaced the ByteArray technique with describeType in the next commit.