Skip to content

Better, faster, stronger query algorithm for the refactor#137

Merged
etwest merged 7 commits intorefactorfrom
refactor_query
Dec 15, 2023
Merged

Better, faster, stronger query algorithm for the refactor#137
etwest merged 7 commits intorefactorfrom
refactor_query

Conversation

@etwest
Copy link
Collaborator

@etwest etwest commented Nov 29, 2023

Before the refactor the latency of performing the CC calculation was 0.30 seconds for kron17. After the refactor it is approximately the same. Through a number of improvements this pull request reduces that latency to only 0.05 seconds for kron17.

Improvements

  • New algorithm for performing merges that requires only a tiny amount of synchronization
  • Linear time and highly parallel "sorting" algorithm for computing merge instructions
  • Efficient return type ConnectedComponents (just compute a root array)

@etwest etwest requested a review from DanielDeLayo November 29, 2023 01:30
@etwest etwest merged commit d188fc3 into refactor Dec 15, 2023
@etwest etwest deleted the refactor_query branch December 15, 2023 02:44
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