redmod-team / profit

Probabilistic Response mOdel Fitting with Interactive Tools
https://profit.readthedocs.io
MIT License
14 stars 10 forks source link

`profit` and `profit-worker` slow startup #100

Closed krystophny closed 3 years ago

krystophny commented 3 years ago

At the moment, profit and related scripts take too long to start. This should be fixed by cleverer imports in __init__.py and possibly other methods.

Rykath commented 3 years ago

On my machine import profit takes about 1s Using tuna the main culprits are identified as:

Rykath commented 3 years ago

Improvement by about 50% by moving GPy in profit.sur.gaussian_process Rykath/profit/speed

Rykath commented 3 years ago

Another possibility for improving the speed of a small simulation (e.g. mockup) would be an InternalRunner which directly runs the simulation (without spawning a subprocess for the Worker). Should I implement that?

krystophny commented 3 years ago

Yes! This would also be very important for testing Monte Carlo methods runs with many points quickly. There is also a way to call Python functions directly as a simulation without starting any external process, right?