You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an application that will call several codecs as subprocesses to decode audio files in parallel, using asyncio.create_subprocess_exec. The subprocesses will stream the decoded binary through pipes. I want to integrate it with a Qt GUI, so I want to transfer to qasync. However when I'm testing the code, I found serious performance drop. It's tricky to write some minimal example for reproducing, but I can post the profiling result with yappi package:
Could anyone help with the performance difference? What's best practice to call subprocess with qasync? Will it be different if I run my program on Linux?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
I cannot help to explain the performance difference, but if you want to use the build in event loop,
you can create a QThread and then free to start a event loop on the new thread and process your work, and update the UI via signal with Qt.QueuedConnection
I have an application that will call several codecs as subprocesses to decode audio files in parallel, using
asyncio.create_subprocess_exec
. The subprocesses will stream the decoded binary through pipes. I want to integrate it with a Qt GUI, so I want to transfer to qasync. However when I'm testing the code, I found serious performance drop. It's tricky to write some minimal example for reproducing, but I can post the profiling result withyappi
package:Using built-in event loop:
Using QEventLoop:
Could anyone help with the performance difference? What's best practice to call subprocess with qasync? Will it be different if I run my program on Linux?
Thanks in advance!
The text was updated successfully, but these errors were encountered: