Property Wrapper causing excessive array copying

I‘d say this is expected behavior, but I could be wrong. I don‘t know if property wrappers would support this but can you make wrappedValue a computed property and instead of get/set use _read/_modify and yield or whatever those modifiers are. Keep in mind that these are not officially public yet.

Here is a video for reference from @Ben_Cohen :

1 Like