StaticArrays + ArrayPartition + DiffEq = Allocations?

Thank Chris,

I took your advice and downloaded the 1.9.0-beta3. What I see is that the total compute time is roughly flat with 1.8.5, but the allocations did significantly decrease.

Does this mean the code is butting up against the speed of the actual calculation? This seems pretty slow for what appears to be a simple solve, but there also appears to be a history of people complaining about the efficiency of norm. IDK if that’s still relevant though.

Timing
Running identical code from above in two different environments:

Version 1.8.5


@btime f($rv0, $μ, 0.0)
  7.800 ns (0 allocations: 0 bytes)

@btime solve($prob, $alg, save_everystep=$save_everystep)
  16.090 ms (70550 allocations: 3.24 MiB)

Version 1.9.0-beta3

 @btime f($rv0, $μ, 0.0)
  7.500 ns (0 allocations: 0 bytes)

 @btime solve($prob, $alg, save_everystep=$save_everystep)
  15.072 ms (121 allocations: 11.98 KiB)

I just used add packagname manually for adding everything so I’m not sure if each environment has the exact same package versions and I’m not sure how to check easily. IDK if that’s important, but I thought I’d add it.