cx icon indicating copy to clipboard operation
cx copied to clipboard

cx playground: maximum time for execution of script before it fails

Open SkycoinSynth opened this issue 3 years ago • 0 comments

If a person submits a CX program to compile

  • we need to time how long execution takes
  • if execution exceeds a threshold, then we need to abort execution (and close that thread/stop compilation)
  • "timeout" should default to 5000 milliseconds
  • timeout needs to be a command line parameter
  • must return error "execution time out, program took more than %N milliseconds to execute"

Timeout can be for compiling program

  • report how long program took to compile/parse

Timeout can be execution of program

  • report how long program took to execute

The same timeout can be used for total time (both compilation and execution).

SkycoinSynth avatar Mar 05 '21 08:03 SkycoinSynth