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

PERFORMANCE: Small functions are not all inlined when called from within Qt libraries

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • Some future release
    • 4.6.2
    • Other
    • None
    • Any

    Description

      PERFORMANCE ISSUE/IMPROVEMENTS

      To maintain compatibility when implementations change, Qt does not make small functions inline in public headers.

      However, within Qt, small common functions like accesors could be available as inline implementations within private headers, to be used when called from other Qt libraries.

      This could have a positive performance benefit., e.g. on ARM environments.

      We should find candidate functions like this that use about 2 instructions for real work (ignoring stack/return operations), and start to make them inline within Qt (or if possible reduce the number of times they are called).

      This can be done for any release, incrementally, with no API implications since it is internal to Qt.

      We should use this issue to track the candidates and the changes we make.

      Attachments

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

        Activity

          People

            rodal Samuel Rødal
            anbaldwi Andrew Baldwin
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes