Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. SCXML slow call to JavaScript/ECMA-Script
QtWS25 Last Chance

SCXML slow call to JavaScript/ECMA-Script

Scheduled Pinned Locked Moved Unsolved General and Desktop
qstatemachine sscxmljavascript
1 Posts 1 Posters 500 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Michael H
    wrote on last edited by
    #1

    Hi,

    I'm currently investigating the speed if SCXML execution, and made a minimum-benchmark where I simply jump between two states. On every entry I will send an event with an delay of 1ms and increment an counter by one. The benchmark is aborted after 1sec.
    So, in the end, I'm expecting something near 1000 state transitions. But, I'm only getting something around 500-600 state transitions. If I add additional states with assign statements its getting worse, if I only add events, the performance similar to the previous test.
    Therefore I'm currently having the suspicion that the JavaScript call is taking a lot of time.

    In parallel i testes uscxml with JavaScriptCore, with similar results.

    The question is now, is the call to JavaScript really slowing down the SCXML-Execution? And is it possible to speed up invokation from C++ to Javascript?

    greetings
    Michael

    0_1533557978666_5109884b-f7fa-498b-95fe-43c0ccb19a26-image.png

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved