Skip to content
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

lang: Zero copy state structs #206

Merged
merged 3 commits into from
Apr 18, 2021
Merged

lang: Zero copy state structs #206

merged 3 commits into from
Apr 18, 2021

Conversation

armaniferrante
Copy link
Member

#202 introduced zero copy deserialization for regular and associated accounts. These changes introduce it for state structs.

//
// For larger zero-copy data structures, one must use non-state anchor
// accounts, as is demonstrated below.
pub events: [Event; 250],

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems possible to get 2 contacts out of solana sdk and calculated that number

@armaniferrante armaniferrante marked this pull request as ready for review April 18, 2021 16:54
@armaniferrante armaniferrante merged commit a8aa84a into master Apr 18, 2021
@armaniferrante armaniferrante deleted the armani/0state branch April 18, 2021 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants