Skip to content
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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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