Skip to content

Commit

Permalink
restore garbage collection during assembly.
Browse files Browse the repository at this point in the history
  • Loading branch information
wcwitt committed Jul 19, 2023
1 parent 9f4e744 commit 65d5bc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/assemble.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function assemble(data::AbstractVector{<:AbstractData}, basis)
A[p.rows, :] .= feature_matrix(p.data, basis)
Y[p.rows] .= target_vector(p.data)
W[p.rows] .= weight_vector(p.data)
GC.gc()
end
@info " - Assembly completed."
return Array(A), Array(Y), Array(W)
Expand Down

0 comments on commit 65d5bc0

Please sign in to comment.