ryanjenkinson / consumer-flex-app

A streamlit app that uses open data to demonstrate consumer flexibility in the energy system
6 stars 1 forks source link

Add garbage collection #12

Closed ryanjenkinson closed 1 year ago

ryanjenkinson commented 1 year ago

Use the inbuilt gc module to periodically gc.collect(). This should stop memory leaks from accumulating and us running out of resources on Streamlit cloud.

The current solution is a little clunky, but we can probably optimise it more later on.

Partially closes #1 .