PSLmodels / OG-UK

An overlapping generations model to simulate fiscal policy the United Kingdom.
https://pslmodels.github.io/OG-UK
Other
6 stars 7 forks source link

Possible 25x speedup in steady-state `inner_loop` function #34

Open nikhilwoodruff opened 2 years ago

nikhilwoodruff commented 2 years ago

I've found that eliminating dask multiprocessing can speed up the inner_loop function's main loop by around 25x (each iteration: ~0.75s without dask, ~20s with dask on my machine), probably due to high startup times. This might not apply to every machine.

Now, I can fail to find the steady-state 25x faster! :smile:

@rickecon @jdebacker @jpycroft @MaxGhenis