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

A new data-structure in shreds for partial deserialization #5915

Merged
merged 5 commits into from Sep 17, 2019

Conversation

pgarg66
Copy link
Contributor

@pgarg66 pgarg66 commented Sep 16, 2019

Problem

The shreds are serialized before sending over wire. To make sense of received data, the whole shreds needs to be deserialized. This is adding overhead.

Summary of Changes

Added a new data structure that can perform partial deserialization of shreds, and construct shred headers. This will reduce the overhead of serialization/deserializations.

#5704

core/src/shred.rs Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Sep 17, 2019

Codecov Report

Merging #5915 into master will decrease coverage by <.1%.
The diff coverage is 84%.

@@           Coverage Diff            @@
##           master   #5915     +/-   ##
========================================
- Coverage    75.5%   75.5%   -0.1%     
========================================
  Files         236     236             
  Lines       42501   42558     +57     
========================================
+ Hits        32114   32147     +33     
- Misses      10387   10411     +24

@pgarg66 pgarg66 merged commit 7459eb1 into solana-labs:master Sep 17, 2019
@pgarg66 pgarg66 deleted the reduce-shred-serializations branch September 17, 2019 03:28
@pgarg66
Copy link
Contributor Author

pgarg66 commented Sep 20, 2019

#5678

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