Closed SCiarella closed 4 weeks ago
This PR uses ShiftedArrays.jl to implement the Laplace operator in a memory-efficient way.
This is a comparison using @time F(u , v):
@time F(u , v)
0.295198 seconds (119 allocations: 841.645 MiB, 12.48% gc time)
0.050149 seconds (15 allocations: 120.000 MiB)
This PR uses ShiftedArrays.jl to implement the Laplace operator in a memory-efficient way.
This is a comparison using
@time F(u , v)
:0.295198 seconds (119 allocations: 841.645 MiB, 12.48% gc time)
0.050149 seconds (15 allocations: 120.000 MiB)