-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
COW radix tree #5
Comments
Mhm, I've never done COW, and don't quite see the sense. Would a COW radix mean that 2 callers read from the same tree, and if caller A makes changes to a node, a copy of that node is generated which is only visible to A? Or a copy of the whole tree? Why would I want changes to be only visible to one caller? |
[ Quoting <reply+i-5657470-80779761e> in "Re: [radix] COW radix tree (#5)..." ]
COW is not about changes being visible to one caller, its about changes being COW and tree means path copying as explained here: ... and the followup posts. Regards,
|
Ok I got the point of COW for radix now. I believe we could get away without a parent pointer if we really want to implement it, though it would be a little bit 'dirty': Also, I'm thinking about writing a |
Couldn't find any usecase in which COW has a benefit. Closing this issue. |
To be really (really) useful a copy-on-write variant of radix would be nice. It will probably need a parental pointer in each node and ofcourse code that deals with the copy-on-write part.
The text was updated successfully, but these errors were encountered: