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

Skip deserialization of readonly accounts #15813

Merged
merged 1 commit into from
Mar 12, 2021

Conversation

jackcmay
Copy link
Contributor

Problem

BPF loader deserializes accounts that were passed to the program as readonly. Now that write-deescalation is enforced deserializing an account that the caller shouldn't write to is a waste.

Summary of Changes

Skip the deserialization of any accounts passed to the program as read-only and thus ignore any local changes they may have made to the local copy

Fixes #

@jackcmay jackcmay force-pushed the dont-deserialize-ro-accounts branch from 947a032 to 2594acf Compare March 12, 2021 02:03
@codecov
Copy link

codecov bot commented Mar 12, 2021

Codecov Report

Merging #15813 (2594acf) into master (209dbb6) will increase coverage by 0.0%.
The diff coverage is 87.5%.

@@           Coverage Diff           @@
##           master   #15813   +/-   ##
=======================================
  Coverage    80.1%    80.1%           
=======================================
  Files         407      407           
  Lines      106163   106259   +96     
=======================================
+ Hits        85085    85168   +83     
- Misses      21078    21091   +13     

@jackcmay jackcmay merged commit cc38ae7 into solana-labs:master Mar 12, 2021
@jackcmay jackcmay deleted the dont-deserialize-ro-accounts branch March 12, 2021 03:28
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.

1 participant