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
Rather than having the data concatenated to struct vector, make it have a data pointer
The length should follow the data pointer
The size is not necessary. We add a function to the heap to tell us the size of the array
This would make struct vector the same as a slice on Solana system calls. The same struct for slice and vector sounds very nice.
Another idea:
Rather than data pointer + lengh, have a first and last pointer. Then accessing the last entry is cheaper. However, is this ever necessary in Solidity?
The text was updated successfully, but these errors were encountered:
Some ideas:
struct vector
, make it have a data pointerThis would make
struct vector
the same as a slice on Solana system calls. The same struct for slice and vector sounds very nice.Another idea:
The text was updated successfully, but these errors were encountered: