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
PyTeal currently outputs code using the pseudo-ops int, byte, and addr. It's up to the assembler to transform these pseudo-ops into int and byte constant blocks. This process can be optimized to reduce program size if the constant blocks are sorted by decreasing frequency of use, and if the new pushint and pushbytes ops are used for single-use constants.
Summary
PyTeal currently outputs code using the pseudo-ops
int
,byte
, andaddr
. It's up to the assembler to transform these pseudo-ops into int and byte constant blocks. This process can be optimized to reduce program size if the constant blocks are sorted by decreasing frequency of use, and if the newpushint
andpushbytes
ops are used for single-use constants.Scope
compileTeal
to enable this feature. By default it should not be enabled to maintain compatibility, at least for now.Urgency
This has the potential to significantly reduce cost program size for large programs.
The text was updated successfully, but these errors were encountered: