Skip to content

Commit b33b0e9

Browse files
authored
Merge pull request #59 from chriselrod/patch-2
read less memory
2 parents 9be41ec + 09affd3 commit b33b0e9

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/lu.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,8 @@ for (f, T) in [(:adjoint, :Adjoint), (:transpose, :Transpose)], lu in (:lu, :lu!
3838
@eval $lu(A::$T, args...; kwargs...) = $f($lu(parent(A), args...; kwargs...))
3939
end
4040

41-
const RECURSION_THRESHOLD = Ref(-1)
42-
4341
# AVX512 needs a smaller recursion limit
44-
function pick_threshold()
45-
RECURSION_THRESHOLD[] >= 0 && return RECURSION_THRESHOLD[]
46-
LoopVectorization.register_size() == 64 ? 48 : 40
47-
end
42+
pick_threshold() = LoopVectorization.register_size() == 64 ? 48 : 40
4843

4944
recurse(::StridedArray) = true
5045
recurse(_) = false

0 commit comments

Comments
 (0)