statsforecast icon indicating copy to clipboard operation
statsforecast copied to clipboard

Very slow first run

Open alan00775 opened this issue 1 year ago • 1 comments

Given it is known that first run takes alot of time: why there is no option to do something like https://stackoverflow.com/questions/21370102/can-i-compile-numba-in-the-setup-phase-of-a-unit-test ? or anything better?

alan00775 avatar Jul 26 '22 19:07 alan00775

Hi @alan00775! Thanks for your suggestion. We are exploring options to reduce the time associated with compilation. For the ets model, you can set the environment variables NOGIL='True' and CACHE='True'. Using them, you only have to pay the compilation time once (you can "initialize" the model using a small dataset). We will include these variables in the other models as well.

AzulGarza avatar Aug 01 '22 18:08 AzulGarza