-
-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The methods `find` and `union` of the class `DisjointSet_of_hashables` pass through an unnecessary layer of input checks that slow down the code. I avoided these checks, cythonized more of the code, and edited the docstrings. I can attest to the fact that these changes improve speed, and in a follow-up PR (#37839) I mention a test that confirms this. URL: #37835 Reported by: gmou3 Reviewer(s): gmou3, Martin Rubey, Travis Scrimshaw, Vincent Delecroix
- Loading branch information
Showing
3 changed files
with
215 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.