Replies: 1 comment
-
We know the asyncio code, it's your code we need to see... At a blind guess, you're probably doing blocking synchronous calls to matplotlib. You might be able to move the most CPU-bound calls to another thread with asyncio.to_thread(). This will allow the main code to yield back to the event loop and continue processing other tasks. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
The log is as follows:
The relevant asyncio code is as follows:
The main logic of the handler is to generate charts using Matplotlib.
Does anyone have any good optimization suggestions?
Beta Was this translation helpful? Give feedback.
All reactions