Hi,
Apple in his document about Writing High-Performance Swift Code, explains a way to do the Copy on Write manually, here:
Nice section, but this arises some questions to me:
- When we should start to consider to use manual Copy on Write?
- What can be a large value?
- How that cost can be measured?
- Any reference to benchmarks / memory usage using COW?
- How we can solve the non thread safe nature for the copy on write?
Thanks