Skip to content

Use visited map like a stack to walk full tree (including duplicate pointers)#4

Open
myshkin5 wants to merge 1 commit intodavegardnerisme:masterfrom
moqueries:stack-visit-upstream
Open

Use visited map like a stack to walk full tree (including duplicate pointers)#4
myshkin5 wants to merge 1 commit intodavegardnerisme:masterfrom
moqueries:stack-visit-upstream

Conversation

@myshkin5
Copy link

Note the hash will in some cases take longer to calculate with this change. Previously it would never walk a object more than once. But with this change it will never walk the same object more than once per depthwise. The change should use slightly less memory though.

Fixes #3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Identical child objects cause different hash of parent object

1 participant