Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-76025 Specify the QML language and write a QML-to-C++ compiler
  3. QTBUG-101452

Use std::move or inline expressions into place if used only once

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Fixed
    • P2: Important
    • 6.5, 6.6.0
    • QML: Compiler
    • None
    • b1df14cfc (dev), 018dd6ce7 (dev)

    Description

      Using the framework for counting usages and dependencies, we can determine if a particular value is used only once or what the last usage of that value is. If it's used only once and all of its dependencies are still the same where it's used, we can inline it, saving some copy operations. If we can determine the last place where the value is used, we can std::move it there, as usually move assignment is cheaper than copy assignment.

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes