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.
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.