Any way to make Qt::QueuedConnection faster?



  • After spending some time to make an algorithm multithreaded, it ended up about 10 times slower due to the horrendously slow speed of queued connections. I suspect there is some room for improvement since allowing the workers to access the dispatcher's data with mutexes actually offers a decent boost. Using a single thread with a direct connection was almost as fast the initial implementation, but multiple threads with direct connections naturally crashed.

    Is the event loop that processes queued connections capped or something?

    And yes, the lesson learned is to not granulate workloads too much when using multiple threads, but I am still curios if the event loop can be made faster.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.