forked from digital-asset/daml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
speedy: short circuit precondition checking (digital-asset#12984)
* speedy: short circuit precondition checking Instead of evaluating all preconditions of templates and interfaces we evaluate preconditions one by one and throw an exception as soon as we find a failing one. This implemented via a lazy SBCheckPrecond builtin and a foldleft expression over the list of preconditions. CHANGELOG_BEGIN CHANGELOG_END * Update daml-lf/interpreter/src/main/scala/com/digitalasset/daml/lf/speedy/Compiler.scala Co-authored-by: Remy <remy.haemmerle@daml.com> * Update daml-lf/interpreter/src/main/scala/com/digitalasset/daml/lf/speedy/SBuiltin.scala Co-authored-by: Remy <remy.haemmerle@daml.com> * fix SUnit -> Unit * tests Co-authored-by: Remy <remy.haemmerle@daml.com>
- Loading branch information
1 parent
942fbe0
commit adaddde
Showing
4 changed files
with
268 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.