Kraysent / OMTool

Modeling N-Body problem in galactic evolution application.
https://omtool.readthedocs.io/en/latest/
Apache License 2.0
0 stars 0 forks source link

Ability to cache values of some tasks #45

Open Kraysent opened 2 years ago

Kraysent commented 2 years ago

Some heavy tasks should cache their values (with some decorator probably) so when they are used moltiple times during the single timestep of analysis they just use cached values

Kraysent commented 2 years ago

Should brobably look at @lru_cache from functools. Though it would be neat to increase speed of r sort in several tasks.