Squeezing performance out of ODE solves with interpolations

There’s a lot that can be improved here. A big part of it is searchsortedlast performance, so someone can roll up their sleaves like in Searchsortedlast performance and really knock that down. We’ve done a little bit already,

https://github.com/SciML/OrdinaryDiffEq.jl/blob/v6.0.3/src/dense/generic_dense.jl#L7-L35

but the answer in that thread is that you don’t always want to do bisection, so that’s one major improvement. Some other things like caching the last index could also be done. It would be really good for someone to dig into this to see if they can find something to speed it up because indeed larger interpolations do take a bit.

Is the reverse here an adjoint equation?

2 Likes