I want fully understand what going inside weak and unowned referance in Swift. For this i read MikeAsh and got some questions.
What already known:
- when there is no weak (and, i suppose, unowned) object reference, the strong reference counter is stored directly in the memory area of the object
- when a weak link appears, the second word in the object memory is reused to reference the side table
- side table has link to the object
- weak link refers to this side table
And what i want to clearify:
- What else side table store inside except link to the object and number of strong reference?
- Is unowned reference link to the side table too? If not and unowned link refers to the object memory what about performance between weak and unowned ?
Okay, i found out.