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

QScxmlEcmaScriptDataModel: Allow different state machines to share a single QJSEngine

    XMLWordPrintable

Details

    • 13
    • Foundation PM Staging

    Description

      When using the ECMAScript data model, each state machine instantiates its own QJSEngine. Consequently, each machine takes up 2 MB of GC heap and 4 MB of stack space upon initialization.

      It would benefit resource-constrained systems if the different state machines in a process can share the same QJSEngine.

      Currently, state machines store their state data directly in the engine's global object's properties. Perhaps each state machine could add a single "data object" to the global object, and store state data in the data object's properties instead?

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            skoh-qt Sze Howe Koh
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes