Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Type instability can make ode4 very slow #121

@marius311

Description

@marius311

I've noticed ode4 can get extremely slow compared to ode45 with the same number of steps or say a hand-written rk4 solver. I tracked this down mostly due to a type instability in oderk_fixed, most impactful on the inner-most loop here; none of ys, ks, or dt involved there are inferred. You can see by running,

@code_warntype ODE.oderk_fixed(identity,Float64[1,1],Float64[0,1],ODE.bt_rk4)

I could hazard a solution myself, although I'm a bit confused about the status of this repository. Is this dead in favor of DifferentialEquations.jl? Or is this part of it? (I've never actually used DifferentialEquations.jl tbh, as I liked the lightweightedness of this one).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions