Swift Optimization Tips and Reference Counting

Apple (via @objctoswift): If you need an array of reference types and the array does not need to be bridged to NSArray, use ContiguousArray instead of Array […] […] Sometimes COW can introduce additional unexpected copies if the user is not careful. An example of this is attempting to perform mutation via object-reassignment in functions. … Continue reading Swift Optimization Tips and Reference Counting