Skip to content

lang: Zero copy state structs#206

Merged
armaniferrante merged 3 commits into
masterfrom
armani/0state
Apr 18, 2021
Merged

lang: Zero copy state structs#206
armaniferrante merged 3 commits into
masterfrom
armani/0state

Conversation

@armaniferrante
Copy link
Copy Markdown
Contributor

#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],
Copy link
Copy Markdown

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
Otter-0x4ka5h pushed a commit to Otter-0x4ka5h/anchor that referenced this pull request Mar 25, 2026
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