Re: [swift-users] Problem with COW optimization

2016-09-18 Thread Dave Abrahams via swift-users
on Sun Sep 18 2016, Adrian Zubarev wrote: > Dear Swift community, > > currently I’m building a value type XML library which is baked behind > the scene with a reference type to manage graph traversing between > nodes. I also like to COW optimize the xml graph, but I run into one > single

[swift-users] Problem with COW optimization

2016-09-18 Thread Adrian Zubarev via swift-users
Dear Swift community, currently I’m building a value type XML library which is baked behind the scene with a reference type to manage graph traversing between nodes. I also like to COW optimize the xml graph, but I run into one single problem atm. Image this xml tree: It’s just a root