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

More refactoring #115

Merged
merged 4 commits into from
Apr 11, 2018
Merged

Conversation

garious
Copy link
Contributor

@garious garious commented Apr 11, 2018

Working towards filtering messages before deserialization. Currently, the messages need to be deserialized because the sig-verified bit is only defined for Transaction messages.

@codecov-io
Copy link

Codecov Report

Merging #115 into master will increase coverage by 0.14%.
The diff coverage is 97.29%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #115      +/-   ##
==========================================
+ Coverage   95.54%   95.68%   +0.14%     
==========================================
  Files          17       17              
  Lines        1504     1508       +4     
==========================================
+ Hits         1437     1443       +6     
+ Misses         67       65       -2
Impacted Files Coverage Δ
src/accountant_skel.rs 93.67% <97.29%> (+2.5%) ⬆️
src/packet.rs 94.16% <0%> (-1.25%) ⬇️
src/historian.rs 100% <0%> (+1.63%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c07f700...50ccecd. Read the comment docs.

@garious garious merged commit 078179e into solana-labs:master Apr 11, 2018
.zip(vers)
.filter_map(|(req, ver)| req.map(|(msg, addr)| (msg, addr, ver)))
.filter(|x| x.0.verify())
.collect();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is going to be one big alloc

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's using into_iter(). Should reduce to memmove().

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vec<Vec<>> into Vec, right? So the output is going to be all of the requests we just pulled up. basically this will kill the improvement we are trying to get with the allocator, since it will allocate all the space for all the IO buffers copy into it, and them drop that buffer later.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or do you mean its smart enough to know about the into_iter on line 163 and compile the allocation out?

vkomenda pushed a commit to vkomenda/solana that referenced this pull request Aug 29, 2021
Bumps [jayson](https://github.com/tedeh/jayson) from 3.2.0 to 3.3.3.
- [Release notes](https://github.com/tedeh/jayson/releases)
- [Commits](tedeh/jayson@v3.2.0...v3.3.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
willhickey pushed a commit that referenced this pull request Mar 9, 2024
Following commits will use this api to check retransmitter's signature
on incoming shreds.
willhickey pushed a commit that referenced this pull request Mar 9, 2024
…ree (backport of #115) (#135)

adds api to obtain the parent node in the turbine retransmit tree (#115)

Following commits will use this api to check retransmitter's signature
on incoming shreds.

(cherry picked from commit 42e8309)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
willhickey pushed a commit that referenced this pull request Mar 9, 2024
…ree (backport of #115) (#135)

adds api to obtain the parent node in the turbine retransmit tree (#115)

Following commits will use this api to check retransmitter's signature
on incoming shreds.

(cherry picked from commit 42e8309)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
yihau pushed a commit to yihau/solana that referenced this pull request Mar 11, 2024
…ree (backport of solana-labs#115) (solana-labs#135)

adds api to obtain the parent node in the turbine retransmit tree (solana-labs#115)

Following commits will use this api to check retransmitter's signature
on incoming shreds.

(cherry picked from commit 42e8309)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
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.

3 participants