Skip to content

Cache access to the options dictionary within prepare, analysis, synthesis #21

@pabloyoyoista

Description

@pabloyoyoista

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions