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

Share RO and Executable accounts within invocations #15799

Merged
merged 3 commits into from
Mar 11, 2021

Conversation

jackcmay
Copy link
Contributor

Problem

During cross-program invocations, unnecessary copies of accounts are taking place in instances where the account is read-only or executable by the caller.

Summary of Changes

Share instead of copy these accounts. Measured around 4-5% reduction in the compute time while verifying the ledger with ledger-tool

Fixes #

@codecov
Copy link

codecov bot commented Mar 11, 2021

Codecov Report

Merging #15799 (18e663e) into master (1135ffd) will decrease coverage by 0.0%.
The diff coverage is 50.6%.

@@            Coverage Diff            @@
##           master   #15799     +/-   ##
=========================================
- Coverage    80.1%    80.1%   -0.1%     
=========================================
  Files         407      407             
  Lines      106084   106108     +24     
=========================================
- Hits        85046    85032     -14     
- Misses      21038    21076     +38     

@jackcmay jackcmay merged commit 4785183 into solana-labs:master Mar 11, 2021
@jackcmay jackcmay deleted the share-readonly-accounts-in-cpi branch March 11, 2021 07:04
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