What are the consequences of passing public keys as references or as values inside programs? Which approach should I use as a default?
As I understand now passing public keys on the stack might blow it up, as its size is quite small for programs, yet using it through a pointer will cost more compute.
Is my general understanding correct?
Also what is about the case when Pubkey
is used in general programs. Which approach should be applied then?