# Minimal loading of OrdinaryDiffEq

**URL:** <https://discourse.julialang.org/t/minimal-loading-of-ordinarydiffeq/122335>\
**Category:** General Usage\
**Tags:** package\
**Created:** [November 6, 2024, 1:40pm UTC](https://discourse.julialang.org/t/minimal-loading-of-ordinarydiffeq/122335 "2024-11-06T13:40:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![svretina](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/svretina/32/206157_2.png) [@svretina](https://discourse.julialang.org/u/svretina)\
**Post date:** [November 6, 2024, 1:40pm UTC](https://discourse.julialang.org/t/minimal-loading-of-ordinarydiffeq/122335/1 "2024-11-06T13:40:44Z")

</div>

I was wondering if it is possible (or if there are plans to do so) to load a minimal subspace of functionalities that one needs. The precompilation times are high and for my usage they deter me from using it. I would like for example the ODEProblem and solve function alongside with an explicit solver such as a RK4() method. For this purpose I don’t see a reason why I have to wait for (say) Krylov methods to precompile etc.

```julia
@time using OrdinaryDiffEq
[Info: Precompiling OrdinaryDiffEq [1dea7af3-3e70-54e6-95c3-0bf5283fa5ed]
┌ Warning: The call to compilecache failed to create a usable precompiled cache file for OrdinaryDiffEq [1dea7af3-3e70-54e6-95c3-0bf5283fa5ed]
│ exception = Required dependency NonlinearSolve [8913a72c-1f9b-4ce2-8d82-65094dcecaec] failed to load from a cache file.
└ @ Base loading.jl:1992
[Info: Precompiling NonlinearSolve [8913a72c-1f9b-4ce2-8d82-65094dcecaec]
┌ Warning: The call to compilecache failed to create a usable precompiled cache file for NonlinearSolve [8913a72c-1f9b-4ce2-8d82-65094dcecaec]
│ exception = Error reading package image file.
└ @ Base loading.jl:1992
167.764636 seconds (29.87 M allocations: 1.823 GiB, 0.30% gc time, 8.74% compilation time)

versioninfo()
Julia Version 1.10.6
Commit 67dffc4a8ae (2024-10-28 12:23 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, skylake)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)
Environment:
  LD_LIBRARY_PATH = :/home/stamatis/.openmpi/lib/:/home/svretina/.julia/artifacts/e95ca94c82899616429924e9fdc7eccda275aa38/lib/

```

---

<div class="post-metadata">

**Author:** ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)\
**Post date:** [November 6, 2024, 1:42pm UTC](https://discourse.julialang.org/t/minimal-loading-of-ordinarydiffeq/122335/2 "2024-11-06T13:42:54Z")

</div>

This was done about 2 months ago. Specifically, you likely want to use one of `OrdinaryDiffEqTsit5`, `OrdinaryDiffEqExplicitRK`, or `OrdinaryDiffEQVerner`

---

<div class="post-metadata">

**Author:** ![svretina](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/svretina/32/206157_2.png) [@svretina](https://discourse.julialang.org/u/svretina)\
**Post date:** [November 6, 2024, 1:46pm UTC](https://discourse.julialang.org/t/minimal-loading-of-ordinarydiffeq/122335/3 "2024-11-06T13:46:29Z")

</div>

thanks so much, this seems to be what I need. I missed this!

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [November 6, 2024, 5:19pm UTC](https://discourse.julialang.org/t/minimal-loading-of-ordinarydiffeq/122335/4 "2024-11-06T17:19:35Z")

</div>

> [@svretina](#):
>
> I would like for example the ODEProblem and solve function alongside with an explicit solver such as a RK4() method.

And for just RK4 there’s SimpleDiffEq.jl

---

<div class="post-metadata">

**Author:** ![svretina](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/svretina/32/206157_2.png) [@svretina](https://discourse.julialang.org/u/svretina)\
**Post date:** [November 6, 2024, 5:32pm UTC](https://discourse.julialang.org/t/minimal-loading-of-ordinarydiffeq/122335/5 "2024-11-06T17:32:34Z")

</div>

thanks for the pointer! will try this out as well!
