Change xy_dot_step
instructions for use in combination with recurse_or_return
#302
Labels
⏩ speedup
Makes stuff go faster.
Currently the
xy_dot_step
instructions treat the top-two stack elements as pointers and the subsequent three stack elements as anXFieldElement
. If instead these instructions had theXFieldElement
on top of the stack, and the pointers below, the instructions could be used very efficiently in combination withrecurse_or_return
.This change would save 3/26 instructions from the snippet for barycentric evaluation, and be roughly neutral in the two other places where these instructions are used.
These four instructions in the barycentric evaluation snippet could be reduced to one:
The text was updated successfully, but these errors were encountered: