Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-137575

QObject::disconnect(): try non-normalized signature first

    XMLWordPrintable

Details

    • Task
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • None
    • Core: Object Model
    • None
    • 8
    • Foundation Sprint 131

    Description

      While profiling tst_bench_qobject, I found that the disconnect() call dominates the connect/disconnect tests (and we can't really separate them in the benchmark, because otherwise we'd be testing the performance of the connection singly-linked list inside QObject, and not mere connect()).

      It turns out that disconnect() unconditionally normalizes the signature, assuming, apparently, that disconnect() performance doesn't matter much. It surely matters less than connect() performance, but it doesn't not matter.

      So, figure out a way to introduce a connect()-style fast-path that doesn't normalize.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              mmutz Marc Mutz
              mmutz Marc Mutz
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes