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

    • Type: Technical task
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Fix Version/s: 6.5
    • Component/s: QML: Compiler
    • Labels:
      None

      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

            Assignee:
            ulherman Ulf Hermann
            Reporter:
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes