-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop using view in adaptive sort #45699
Stop using view in adaptive sort #45699
Conversation
Local tests look good (jl_2RvVlb) pkg> status
Status `/private/var/folders/hc/fn82kz1j5vl8w7lwd4l079y80000gn/T/jl_2RvVlb/Project.toml`
[c2308a5c] FASTX v1.3.0
julia> using FASTX
julia> println(first(FASTQ.Reader(IOBuffer("@A\nA\n+\nA"))))
@A
A
+
A I don't think we should include this test in test/sorting.jl. |
Should we try get this merged, or should we wait on the refactor? |
Let's proceed here. The changes are pretty low risk, and I'd be happy to merge as is. I don't think bounds checking is necessary here given the conventions we have in this part of the codebase. Still, this code only runs for lengths > 30 ish, so we can add explicit bounds checking before the loop without measurable performance overhead if folks prefer it that way. |
Yeah it would be good to bring the bounds check in and get this merged. Does that also pave the way to making sorting an stdlib? |
I think it makes sense to improve quicksort before refactoring because one of the advantages it brings is that making quicksort stable simplifies policy, which will be good to either take advantage of (if it merges) or not wrongly hope for (if benchmarking or code review comes out catastrophically negative). I also think that making sorting a stdlib should come after refactoring because part of sorting will have to stay behind for This PR is orthoganal. |
Not entirely orthogonal, that build error and merge conflict would not have happened if sorting was a stdlib. |
This looks good to me. If other folks agree, I'd like to merge it so I can use |
Would it be helpful to have a label for |
I believe CI is down for maintenance. So this probably needs to be held until CI is back online and we can run everything again. |
It would be helpful to me. I often find myself using the search term "sort". I'd be happy to make a label and tag some historical items if you think it's appropriate. We have
The results from 11 hours ago seem pretty good to me. Is there a worry that they are a false positive? |
Ok, maybe the bots are back online. I thought the runs were stale. |
Fixes #45522