Skip to content

Conversation

@kripken
Copy link
Member

@kripken kripken commented Feb 16, 2018

Hash results may differ between runs, as they can depend on pointers. In remove-duplicate-functions, that shouldn't matter, except that we only considered the first item in each hash group vs the others (to avoid O(N^2)), which is fine except for hash collisions (collisions mean 2 groups are merged into one, and considering just the first item vs the rest we miss out on the other duplicates in that single group). And hash collisions do occur (rarely) in practice. Instead, consider all comparisons in each hash group, which should be fine unless we have large amounts of hash collisions.

…pend on pointers. in remove-duplicate-functions, consider all comparisons in each hash group, not just the first in the group, as what groups we have can change between runs
@kripken kripken merged commit 27000a9 into master Feb 16, 2018
@kripken kripken deleted the det branch February 16, 2018 16:18
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.

3 participants