twpasolver.cmes.warmup module#
Pre-compile and disk-cache the package’s Numba CME solver kernels.
Numba’s @njit(cache=True) writes a cache entry only once a function has
been called with a given signature, so the first call in a fresh environment
pays the full compile time (minutes, for the kernels in
twpasolver.cmes). Run twpasolver-warmup once after installing
(locally, in a Dockerfile, in CI) to pay that cost up front; pip/Poetry have
no post-install hook to do it automatically.