I have a streamlit app, which for some reason is becoming unresponsive: Whenever I change the value of the dropdown, there is 1-2 second of lag before streamlit starts loading. I have tried to time every bit of my code within the streamlit app, but there is nothing above 0.1 seconds reported by the timing function. It seems that this 1-2 second of lag occur before any of my code is being executed.
Can you please help me understand and debug this case? It is difficult to improve, when I have no way to track what the problem is.
This is happening on my local machine. I have several streamlit apps running, but for some reason this one is causing problems. It is a weird lag. When I change the dropdown here is a delay of 2-3 seconds before loading starts to happen. I have tried to time my code from start to end, but nothing in the timer indicates time consumption of more than 0.1 seconds. Could it be related to memory?
I think memory swapping could be a good thing to explore. If you are running several apps, and your operating system is swapping RAM to disk, you could be seeing these sorts of hiccups.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking βAccept allβ, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.