You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If this mul function is called from an unconstrained context then we need to execute both the __mul function and the evaluation_quadratic_expression which is pointless in an unconstrained context and needlessly slows down execution. We can avoid the need for this by conditioning the evaluation_quadratic_expression on !std::runtime::is_unconstrained() so this only happens in constrained code.
The text was updated successfully, but these errors were encountered:
See the
mul
function below which calls the unconstrained variant and then constrains it usingevaluation_quadratic_expression
:noir-bignum/src/fns/constrained_ops.nr
Lines 396 to 412 in b44ef7f
If this
mul
function is called from an unconstrained context then we need to execute both the__mul
function and theevaluation_quadratic_expression
which is pointless in an unconstrained context and needlessly slows down execution. We can avoid the need for this by conditioning theevaluation_quadratic_expression
on!std::runtime::is_unconstrained()
so this only happens in constrained code.The text was updated successfully, but these errors were encountered: