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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes