Skip to content

Commit daacf49

Browse files
Merge pull request #45 from JuliaSIMD/reduce-handoff-threshold
Reduce handoff threshold
2 parents fac3079 + 4847da2 commit daacf49

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "VectorizedStatistics"
22
uuid = "3b853605-1c98-4422-8364-4bd93ee0529e"
33
authors = ["C. Brenhin Keller", "Chris Elrod"]
4-
version = "0.5.10"
4+
version = "0.5.11"
55

66
[deps]
77
LoopVectorization = "bdcacae8-1622-11e9-2a5c-532679323890"

src/quicksort.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ sortnans!(A::AbstractArray{<:Integer}, iₗ::Int=firstindex(A), iᵤ::Int=lastin
7373

7474
# Partially sort `A` around the `k`th sorted element and return that element
7575
function quickselect!(A::AbstractArray, iₗ::Int=firstindex(A), iᵤ::Int=lastindex(A), k=(iₗ+iᵤ)÷2)
76-
# Fall back to Base implementation for very large arrays
77-
if iᵤ-iₗ > 20000
76+
# Fall back to Base implementation for large arrays
77+
if iᵤ-iₗ > 9999
7878
return Base.Sort.partialsort!(view(A, iₗ:iᵤ), k-(iₗ-1))
7979
end
8080

0 commit comments

Comments
 (0)