Poor performance on the cloud compared to local dev

The app behaves with reasonable performance when I’m running it locally, but with significant lag when shared through streamlit cloud. As in, it is multiples slower, sometimes with lags of 30 seconds or more. It’s rather embarrassing when demo’ing it.
I finally decided to broach this topic when one of my colleagues mentioned it unprompted. He said “Wow, it works a LOT faster on your machine.”

Not sure what to say without knowing what the workload is. That being said, Streamlit Cloud is a free service more geared toward people getting started or community learning/sharing. It wouldn’t surprise me for someone to have a nicer compute environment locally. If this is something for business use for example, you may want to consider a different deployment.

1 Like