Skip to content

Conversation

@joncinque
Copy link
Owner

Problem

Many of the structs in the SDK use extern layout. While this ensures compatibility with C ABI, it can also be less performant for on-chain programs.

Summary of changes

Move PublicKey, Account.Data, and Rent to be packed structs. This is a breaking change because the underlying layout of many types will change.

#### Problem

Many of the structs in the SDK use `extern` layout. While this ensures
compatibility with C ABI, it can also be less performant for on-chain
programs.

#### Summary of changes

Move `PublicKey`, `Account.Data`, and `Rent` to be `packed` structs.
This is a breaking change because the underlying layout of many types
will change.
@joncinque joncinque enabled auto-merge (squash) November 15, 2024 13:00
@joncinque joncinque merged commit 4b1f50b into main Nov 15, 2024
12 checks passed
@joncinque joncinque deleted the packkey branch November 15, 2024 13:16
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