Skip to content

Python scripts run slower after multiple executions inside GUI #23

@dbrnz

Description

@dbrnz

From Gonzalo Talou:

I found another issue when multiple executions of a model are performed. In the script in attachment (example_loop.py), a model is iteratively called and each new execution takes more time than the previous one. ​In my case I have to perform ~1 millon executions and this accumulative effect makes the computational time intractable.

Is any way to underpin this issue?

example_loop.py.gz
pv_type.cellml.gz

This is an issue when running inside the OpenCOR GUI but not when running the same script from a Jupyter notebook nor batched from the command line. The OpenCOR GUI is significantly slower after multiple executions of the model. (Jupyter is slightly faster than the CLI as the CLI has the initial overhead of starting a Jupyter notebook server.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions