daml/daml-lf/scenario-interpreter
nickchapman-da 572b21e882
Speedy: run() dont step() (#5814)
Speedy: run() dont step()

- Running the Speedy machine with  `run()` instead of `step()`
- Remove: `SResultContinue`
- Add: `SResultFinalValue(_)`

We change the top level control of Speedy: from machine.step() to machine.run, with the control of stepping while the machine returns SResultContinue moved into speedy itself. (And so SResultContinue is removed in favour of SResultFinalValue.) The main advantage of this approach is that the tight while loop can be moved inside the exception handler, rather than having to wrap the handler every step.

changelog_begin
changelog_end
2020-05-04 16:57:47 +01:00
..
src Speedy: run() dont step() (#5814) 2020-05-04 16:57:47 +01:00
BUILD.bazel DAML Exec Perf: Add simple benchmark for scenario interpreter (#5747) 2020-04-28 14:44:29 +02:00