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
It's very common to create a ByteString from a byte array to use as a storage key. But NCCS inserts an extraneous CONVERT instruction when you do this. Given that CONVERT is one of the most expensive opcodes (8192), there should be a way to construct a byte string without converting it to a buffer needlessly.
Example, a typical NEP-17 TotalSupply method implemetnation:
It's very common to create a ByteString from a byte array to use as a storage key. But NCCS inserts an extraneous
CONVERT
instruction when you do this. Given thatCONVERT
is one of the most expensive opcodes (8192), there should be a way to construct a byte string without converting it to a buffer needlessly.Example, a typical NEP-17 TotalSupply method implemetnation:
NCCS converts this to the following NeoVM instructions (inline and optimization enabled):
The text was updated successfully, but these errors were encountered: