After watching WWDC video: Understanding Swift Performance - 416, we need to investigate how large our structs are. If there are more than 3 words of data, then we need to implicate copy-on-write. This video has the details of how to do it. It seems like a word, as defined in the session, is 64-bits from what I can tell, as he was using a Double to be 1 word, and a Double is 64-bits as far as I'm aware.
After watching WWDC video: Understanding Swift Performance - 416, we need to investigate how large our structs are. If there are more than 3 words of data, then we need to implicate copy-on-write. This video has the details of how to do it. It seems like a word, as defined in the session, is 64-bits from what I can tell, as he was using a
Double
to be 1 word, and aDouble
is 64-bits as far as I'm aware.