Open Loedn opened 1 month ago
In addition to saving program bytecode size, this would also help reduce opcode cost. Subroutine calls (assuming they have variables) require at least a callsub
, proto
, and retsub
. In scenarios where a set of operations is frequently repeated, this can quickly add up.
Problem
I want to achieve this inlining to save space in a logic signature, which has a size limit of 1000 bytes, while keeping the code organized within functions.
Solution
Example
Relevant link
Discord convo