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. Signal/slot performance
Forum Updated to NodeBB v4.3 + New Features

Signal/slot performance

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 417 Views
  • 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.
  • mhsgoudM Offline
    mhsgoudM Offline
    mhsgoud
    wrote on last edited by
    #1

    Hello, I am trying to write a kind of parser, in which a lot of signals can be emitted and slots are called within a for loop.
    my question is, how much performance/speed penalty should I expect for each signal/slot call?
    Thanks

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      Very little within a thread. New style connections are effectively direct calls.
      Across threads I imagine greater impact marshalling values.
      YMMV and the best way to find out is a test with your particular arrangements to see if it will be "fast enough" (lacking something to compare against).

      1 Reply Last reply
      5

      • Login

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