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

in hash calc, delete old cache files that will not be used earlier #33432

Merged
merged 3 commits into from
Oct 9, 2023

Conversation

jeffwashington
Copy link
Contributor

Problem

Improving performance of hash calc.

Summary of Changes

When preparing to scan append vecs, first delete all existing cache files that will no longer be used. For example, if a slot was dropped or shrunk, then the cache file containing that file will be rewritten from scratch. So, that old file will never be useful again.

Fixes #

@codecov
Copy link

codecov bot commented Sep 27, 2023

Codecov Report

Merging #33432 (9f0dda8) into master (7afb11f) will decrease coverage by 0.1%.
Report is 5 commits behind head on master.
The diff coverage is 91.6%.

@@            Coverage Diff            @@
##           master   #33432     +/-   ##
=========================================
- Coverage    81.7%    81.7%   -0.1%     
=========================================
  Files         807      807             
  Lines      218287   218303     +16     
=========================================
+ Hits       178524   178536     +12     
- Misses      39763    39767      +4     

brooksprumo
brooksprumo previously approved these changes Oct 9, 2023
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.

lgtm

@jeffwashington jeffwashington merged commit 0526775 into solana-labs:master Oct 9, 2023
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