Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

removes pubkey references #15050

Merged
merged 1 commit into from
Feb 3, 2021
Merged

Conversation

behzadnouri
Copy link
Contributor

Problem

The pubkeys are retained until the next epoch:
https://github.com/solana-labs/solana/blob/8376781ec/core/src/replay_stage.rs#L1867-L1869
plus the overhead of Rc itself.
So not clear these are saving any memory over the plain pubkeys.
And they are not necessary for the code logic either,
but they have a negative impact on the runtime.

Summary of Changes

Removed PubkeyReferences

@behzadnouri
Copy link
Contributor Author

Left chunk is after removing the pubkey references:

replay-loop-timing-stats::compute_bank_stats_elapsed:
rm_pubkey_refs replay-loop-timing-stats compute_bank_stats_elapsed

@behzadnouri behzadnouri requested a review from carllin February 3, 2021 15:25
@codecov
Copy link

codecov bot commented Feb 3, 2021

Codecov Report

Merging #15050 (d89a5aa) into master (8376781) will decrease coverage by 0.0%.
The diff coverage is 73.9%.

@@            Coverage Diff            @@
##           master   #15050     +/-   ##
=========================================
- Coverage    79.6%    79.6%   -0.1%     
=========================================
  Files         401      401             
  Lines      101108   101058     -50     
=========================================
- Hits        80524    80468     -56     
- Misses      20584    20590      +6     

@carllin
Copy link
Contributor

carllin commented Feb 3, 2021

Thanks for the cleanup! Can also probably be removed from cluster_info_vote_listener and cluster_slots.rs

@behzadnouri
Copy link
Contributor Author

Thanks for the cleanup! Can also probably be removed from cluster_info_vote_listener and cluster_slots.rs

yes, I will send you another pull request for that

@behzadnouri behzadnouri merged commit 86467d8 into solana-labs:master Feb 3, 2021
@behzadnouri behzadnouri deleted the rm-pubkey-refs branch February 3, 2021 23:04
mergify bot pushed a commit that referenced this pull request Feb 3, 2021
(cherry picked from commit 86467d8)
mergify bot added a commit that referenced this pull request Feb 4, 2021
(cherry picked from commit 86467d8)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
behzadnouri added a commit to behzadnouri/solana that referenced this pull request Feb 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants