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

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes