0.4 sec per xType - can we speed it up?

{
  "Name": "test_xkey_time",
  "CreationDate": "2021-1-13",
  "Commands": [
    {
      "Command": "store",
      "Target": "fast",
      "Value": "!replayspeed"
    },
    {
      "Command": "times",
      "Target": "25",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${key_shift}",
      "Value": ""
    },
    {
      "Command": "end",
      "Target": "",
      "Value": ""
    },
    {
      "Command": "echo",
      "Target": "parseFloat(${!runtime})",
      "Value": ""
    }
  ]
}

Instead of using a loop, you can add all 25 ${key_shift} into one XType:

   {
      "Command": "XType",
      "Target": "${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}",
      "Value": ""
    },
1 Like