Memory Latency and Persistent Data Structure
I was writing a data structure for tree-view. All children are explicitly ordered. At first, I started with plain recursive data structure. Something like this. This is typical, but I also wanted it to be persistent data structure. And actually I have nothing to do with it because Swift data structures are all copy-on-write based, therefore natively persistent.