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

shrink avoids reshaping data by using StorableAccounts trait #29307

Merged
merged 1 commit into from
Dec 19, 2022

Conversation

jeffwashington
Copy link
Contributor

Problem

We're copying data right now into hashes, write_version, and StoredMeta when we shrink. This is not necessary.

Summary of Changes

Use StorableAccounts trait to use data in FoundStoredAccount

Fixes #

Copy link
Contributor

@brooksprumo brooksprumo left a comment

Choose a reason for hiding this comment

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

nice! lgtm

@jeffwashington jeffwashington merged commit c816157 into solana-labs:master Dec 19, 2022
nickfrosty pushed a commit to nickfrosty/solana that referenced this pull request Jan 4, 2023
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