PablocFonseca / streamlit-aggrid

Implementation of Ag-Grid component for Streamlit
https://pypi.org/project/streamlit-aggrid/
MIT License
992 stars 190 forks source link

Performance issue with the deepcopy and aggrid #284

Open fmerciergh opened 1 week ago

fmerciergh commented 1 week ago

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

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 ?

fmerciergh commented 1 week ago

I'm using streamlit-aggrid version 0.3.3 because I need the manual update on tables 😋 with streamlit 1.34.0