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. Does using slot lambdas increase binary code size?
Forum Updated to NodeBB v4.3 + New Features

Does using slot lambdas increase binary code size?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.1k 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.
  • P Offline
    P Offline
    philk
    wrote on last edited by
    #1

    I wonder if using the new Qt5 slot connection mechanism with lambdas increase the size of the generated code?
    And if not, I assume its faster during runtime, than the old string lookup?

    1 Reply Last reply
    0
    • P Offline
      P Offline
      philk
      wrote on last edited by
      #2

      I wonder that myself, but hadn't time to check the binary increase. But I would say its faster than a string lockup.
      Usually string lockup is fast enough though. I mean Quake used string lockup for instantly playing audio files back in the 90's.

      1 Reply Last reply
      0
      • JeroentjehomeJ Offline
        JeroentjehomeJ Offline
        Jeroentjehome
        wrote on last edited by
        #3

        I don't think it differs all that much in code execution. Maybe the code for the connect function is different, but the execution of the signal/slot will be the same, because in basic none has changed.

        Greetz, Jeroen

        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