music-notation-swift / music-notation-core

Music Notation Library in Swift (Deprecated. See `music-notation` instead)
MIT License
115 stars 16 forks source link

Investigate need for copy-on-write #12

Open drumnkyle opened 8 years ago

drumnkyle commented 8 years ago

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.