Skip to content

Commit

Permalink
Remove inefficient push! loop in favor of append!
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanaelbosch committed Feb 3, 2024
1 parent 9d150d7 commit 0dfb2ea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/integrator_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@ The actual smoothing step happens by [`marginalize!`](@ref)ing backward kernels.
"""
function smooth_solution!(integ)
@unpack cache, sol = integ
for x in sol.x_filt
push!(sol.x_smooth, x)
end
append!(sol.x_smooth, sol.x_filt)

@unpack x_smooth, t, backward_kernels = sol
@unpack C_DxD, C_3DxD = cache
Expand Down

0 comments on commit 0dfb2ea

Please sign in to comment.