Open Kraysent opened 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
Should brobably look at @lru_cache from functools. Though it would be neat to increase speed of r sort in several tasks.
@lru_cache
functools
r
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