sirgallo
Joined 2 years ago
Karma
23
Submissions
19
Member since
Jul 15
Just a guy who likes to understand things.
View on Hacker NewsJoined 2 years ago
On a mutation, I do a complete node copy where I also copy the key/value slices. When I set a child node for the first time or update a child, I create a branch new leaf node with a copy of the key/value. This way previous nodes maintain the original copy.