Skip to content

Why - Use HashSet for visited nodes - fixes #3702 - #3722

Merged
forki merged 1 commit into
fsprojects:masterfrom
theimowski:why_use_hashset
Nov 15, 2019
Merged

forki merged 1 commit into
fsprojects:masterfrom
theimowski:why_use_hashset

Conversation

@theimowski

Copy link
Copy Markdown
Member

Before we used immutable Set which didn't preserve visited nodes when traversing the graph, so we ended up searching same nodes over and over again. Using HashSet in place makes sure the list is preserved.

@theimowski theimowski mentioned this pull request Nov 14, 2019
@forki forki closed this Nov 14, 2019
@forki forki reopened this Nov 14, 2019
@forki
forki merged commit f623750 into fsprojects:master Nov 15, 2019
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.

2 participants