-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: specialize range operations for better performances (#177)
* Use binary search for `Range::contains` * Avoid cloning and dropping the term in prior_cause * Simplify contains * Specialize union code * remove a redundant check and reuse helper * Specialize is_disjoint * simplify and add tests for is_disjoint * Specialize subset_of * simplify and add tests for subset_of * Specialize range operations for better performance * add tests and use in more places * Fix clippy lints * replace a complement with is_disjoint * one fewer complement using intersection * use the symmetry of set functions --------- Co-authored-by: Jacob Finkelman <[email protected]>
- Loading branch information
Showing
6 changed files
with
356 additions
and
54 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
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.