Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Any way to make Qt::QueuedConnection faster?
Forum Updated to NodeBB v4.3 + New Features

Any way to make Qt::QueuedConnection faster?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    utcenter
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved