mbakker7 / timml

An analytic element model for steady multi-layer flow
MIT License
38 stars 21 forks source link

Use JIT caching: suffer latency only once #58

Closed Huite closed 1 year ago

Huite commented 1 year ago

numba njit has a caching argument, which helpfully stores the compiled code. This massively reduces start-up time after first use (e.g. 14 seconds for a LeakyLineDoublet on my machine).