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

Optimize string-based connect() vis-a-vis PMF-style connect()

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • Core: Object Model
    • None
    • 13
    • 8e98a3a82 (dev), 1fa31be7c (dev), a481a79a9 (dev), cac63042b (dev), 4a1de9106 (6.9), d4cd7bf5f (6.9), 1f2565e96 (6.9), 95fd5fc0d (6.9), 96f930377 (6.8), 8a30af2c3 (tqtc/lts-6.5)
    • Foundation Sprint 129, Foundation Sprint 130

    Description

      In the eternal debate whether string-based or PMF-based QObject::connect() is "better", dfaure_kdab offered the argument that the latter are faster than the former.

      tst_bench_qobject confirms this (not posting benchmark results, because they're done with an ubsan/asan build), but, at least for normalized signatures, this is kinda surprising, because the PMF-connect needs to allocate an (additional) QSlotObject instance, while string-based connect() merely needs to parse (compare, really) a (relatively short) string.

      Investigate why string-based connect is so slow and try to optimize it, starting with de-pessimisation.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-135572
          # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

                Created:
                Updated: