Skip to content

lang: Accounts structs should allow references to account infos #512

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
armaniferrante opened this issue Jul 11, 2021 · 1 comment
Closed

Comments

@armaniferrante
Copy link
Collaborator

Currently the accounts context requires taking ownership of a clone of an account info. This is less efficient and particularly wasteful w.r.t. stack size.

@acheroncrypto
Copy link
Collaborator

AccountInfos of the wrapper types are now references(#2656) but it's not reference for AccountInfo itself because derive proc macro doesn't allow changing the owned type to a reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants