JuliaSpaceMissionDesign / Ephemerides.jl

A Modern Binary Ephemeris Reader for Julia, in Julia.
https://juliaspacemissiondesign.github.io/Ephemerides.jl/
MIT License
22 stars 1 forks source link

Re-order segment priorities to speed up transform if-elses #42

Closed MicheleCeresoli closed 9 months ago

MicheleCeresoli commented 9 months ago

Segments have been ordered according to the following priority:

  1. Type 2/3
  2. Type 8//12
  3. Type 9/13
  4. Type 18/19
  5. Type 1/21
  6. Type 20
  7. Type 14
  8. Type 5
  9. Type 15
  10. Type 17

Segments with a higher priority are checked first with respect to the others (i.e., they don't have to go through the whole if-else clauses)