Skip to content

Remove bincode #314

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

Merged
merged 4 commits into from
Nov 28, 2022
Merged

Remove bincode #314

merged 4 commits into from
Nov 28, 2022

Conversation

guibescos
Copy link
Contributor

@guibescos guibescos commented Nov 22, 2022

Remove bincode. We are forced to use bytemuck to deserialize the programdata account.
This a big size gain : 170k -> 99k

@guibescos guibescos marked this pull request as ready for review November 23, 2022 22:46
programdata_deserialized
.upgrade_authority
.eq(upgrade_authority_account.key)
&& programdata_deserialized.account_type == 3
Copy link
Contributor

Choose a reason for hiding this comment

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

what’s the account type check mean? (maybe leave a comment)

Copy link
Contributor

Choose a reason for hiding this comment

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

could also considering extracting 3 out into a constant somewhere with a descriptive name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ProgramdataAccount comments explain this.

@guibescos guibescos merged commit 08940f1 into main Nov 28, 2022
@guibescos guibescos deleted the remove-bincode branch November 28, 2022 14:53
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