Selectbox too slow when too many options

Hello!
I have a selectbox with 100k+ options and it takes a bit too long to interact with it.
Is there any way I can reduce the delay? Maybe somehow reduce the number of visible options from the dropdown, or none at all?
Thamks :pray:t2:

You could try caching the function that loads options into the selectbox. Check the Streamlit documentation about optimizing performance.

1 Like