forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove specialized sort! method for PartialQuickSort{Int} (fixes Juli…
…aLang#12833) There were two sort methods for PartialQuickSort, depending on whether it was parameterized by an Int (representing the last index needing to be sorted) or a Range. The version parameterized by an Int has one less comparison per branch, but it causes inference to fail to infer the return type of sort/sort! under many circumstances. Removing this version and only providing the generic function restores proper type inference. If there's an underlying bug that is fixed, this can be reverted (though the test should remain.)
- Loading branch information
Showing
2 changed files
with
38 additions
and
26 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