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
Currently, DEFCIRCUIT is classified as part of a Program's "body instructions" whereas all other "DEF" instructions are stored in their own mapping.
Since body instructions are stored in a Vec, it's not possible to find a DEFCIRCUIT in a program without doing a O(n) search through the body_instructions vector. DEFCIRCUITs are often re-used in multiple programs, and storing them in a map would allow them to be accessed more efficiently.
From a UX perspective, it is also confusing that all DEF instructions except for DEFCIRCUIT get hoisted to the top of the program.
The text was updated successfully, but these errors were encountered:
Currently,
DEFCIRCUIT
is classified as part of a Program's "body instructions" whereas all other "DEF" instructions are stored in their own mapping.Since body instructions are stored in a
Vec
, it's not possible to find aDEFCIRCUIT
in a program without doing a O(n) search through thebody_instructions
vector.DEFCIRCUIT
s are often re-used in multiple programs, and storing them in a map would allow them to be accessed more efficiently.From a UX perspective, it is also confusing that all DEF instructions except for
DEFCIRCUIT
get hoisted to the top of the program.The text was updated successfully, but these errors were encountered: