Performance issue with the deepcopy and aggrid

Hi,

I’m using aggrid with streamlit, and I’ve got a performance issue when tables contains a lot of rows (a few tens of thousands).

Streamlit make a deepcopy of all the content of each table at every run (lib/site-packages/streamlit/runtime/state/session_state.py), sometime it takes more than 10 secondes, making the app unusable.

I made some test by removing the deepcopy when the data is too big and it worked perfectly.

Is there an other option or do I really need to create my own version of streamlit ?

Hi @Sabine,

Thank you for your question. Do you have a repo or code you can share for the implementation? Trying to tease out if it is specific to using AgGrid component.