We had been accessing the options dictionary within analysis in a pretty big loop for plotting, and while debugging, @SofiaIngrid found that 50% of the 30 minutes runtime was just accessing the options dictionary. Caching the call to the dictionary at the beginning of the function did the trick, but that's pretty unintuitive.
I haven't looked much into it, but my gut feeling would be that the reason is that analysis is reading the options dict from disk (and in some situations we have pretty big dicts there). I would hope there is a way to cache the read function if that's the case
We had been accessing the options dictionary within analysis in a pretty big loop for plotting, and while debugging, @SofiaIngrid found that 50% of the 30 minutes runtime was just accessing the options dictionary. Caching the call to the dictionary at the beginning of the function did the trick, but that's pretty unintuitive.
I haven't looked much into it, but my gut feeling would be that the reason is that analysis is reading the options dict from disk (and in some situations we have pretty big dicts there). I would hope there is a way to cache the read function if that's the case