russellprimeau / BrusdalsvatnetDT

Collects and visualizes data from several systems for monitoring Brusdalsvatnet water quality.
GNU General Public License v3.0
0 stars 0 forks source link

Restructure code to use caching #4

Open russellprimeau opened 10 months ago

russellprimeau commented 10 months ago

The st.cache_data() and st.cache_resource() functions are probably the solution to both slow run times and persistence in interactions (for path planning). Because it is function-oriented, will need to restructure functions so that all external data reading/writing is wrapped in functions which return the object. See https://docs.streamlit.io/library/advanced-features/caching.