Skip to content

Commit 09affd3

Browse files
authored
read less memory
1 parent 9be41ec commit 09affd3

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)