-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Zero copy deserialization #135
Comments
Not having this is the main reason I can think of that someone wouldn't use Anchor. Bumping to P1. |
Is that zero copy based on structs references as API to state or traits? Is it borsh compatible in binary format? Does it works on non x86 cpus? how it works with growing stuctrues? and just wire this to other stuff solana-labs/solana#13391 (comment) |
Zero copy here directly re-interprets the bytes from the AccountInfo's More specifically the account struct must implement Growing structures aren't currently supported, and it's not necessarily borsh compatible in binary format (though some subset of things conveniently are, like arrays and structs), and there's no expectation it works on non x86 cpus. |
Explore adding a zero-copy deserialization feature that can be opted into instead of using borsh.
The text was updated successfully, but these errors were encountered: