Progress example is slow during reload in browser because of Manager().Queue(). How to speed up? #2997
Unanswered
luciferz2021
asked this question in
Q&A
Replies: 2 comments 5 replies
-
What do you mean with "I run the progress example in windows and it takes about 5 seconds to reload in browser."? Is your auto-reload taking too long? Using http for inter-process communication instead of a Queue is certainly possible -- but a bit ugly because you publicly expose an internal API. I would rather like to understand why the Queue is not working for you. This is standard Python and should work. |
Beta Was this translation helpful? Give feedback.
5 replies
-
Can anyone else reproduce the problem? Maybe it's Windows-related? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
I run the progress example in windows and it takes about 5 seconds to reload in browser.
I tried to simplify the code to speed up and found that
Manager().Queue()
made the code slow.I replaced it with FastApi for a faster reload as below. Is there a better way to speed up?
Beta Was this translation helpful? Give feedback.
All reactions