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

Use LRU cache and ahash hash of shreds to filter duplicates #13976

Merged
merged 1 commit into from
Dec 8, 2020

Conversation

sakridge
Copy link
Member

@sakridge sakridge commented Dec 6, 2020

Problem

Just comparing slot/index filters duplicate shreds too aggressively.

Summary of Changes

Use LRU cache of blake3 hash of the shred data to filter duplicates.

Fixes #

@sakridge sakridge requested a review from carllin December 6, 2020 20:41
@sakridge sakridge force-pushed the lru-cache branch 3 times, most recently from 528bfac to 658fc24 Compare December 7, 2020 00:22
@sakridge sakridge changed the title Use LRU cache and blake3 hash of shreds to filter duplicates Use LRU cache and ahash hash of shreds to filter duplicates Dec 7, 2020
@sakridge sakridge force-pushed the lru-cache branch 4 times, most recently from fe95102 to 50220c7 Compare December 7, 2020 00:38
@codecov
Copy link

codecov bot commented Dec 7, 2020

Codecov Report

Merging #13976 (e3b8d1a) into master (3425e98) will decrease coverage by 0.0%.
The diff coverage is 87.5%.

@@            Coverage Diff            @@
##           master   #13976     +/-   ##
=========================================
- Coverage    82.1%    82.1%   -0.1%     
=========================================
  Files         382      382             
  Lines       93770    93781     +11     
=========================================
+ Hits        77042    77050      +8     
- Misses      16728    16731      +3     

@sakridge sakridge merged commit f660081 into solana-labs:master Dec 8, 2020
@sakridge sakridge deleted the lru-cache branch December 8, 2020 00:42
@sakridge sakridge added the v1.4 label Dec 8, 2020
mergify bot pushed a commit that referenced this pull request Dec 8, 2020
(cherry picked from commit f660081)

# Conflicts:
#	Cargo.lock
mergify bot added a commit that referenced this pull request Dec 8, 2020
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.

None yet

2 participants