Skip to content

[TM-372] `failCustom_` is inefficient

Anton Myasnikov requested to merge awkure/tm372-failCustom_-inefficiency into master

Description

It seems like that failCustom_ function produced the following stack of instructionsunit; push _; pair, but it can do only one push with pair argument, so this MR refactors failCustom_ so it uses just two instructions: PUSH and FAILWITH.

Related issue(s)

https://issues.serokell.io/issue/TM-372

Checklist for your Merge Request

Related changes (conditional)

  • Tests (see short guidelines)

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:

Stylistic guide (mandatory)

Edited by Ivan Gromakovskii

Merge request reports