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

[Merged by Bors] - tortoise: reuse decoded votes #5009

Closed

Conversation

dshulyak
Copy link
Contributor

related: #3006

it also reduced 300MB of used memory on my machine.

ballot signs opinion hash, and provides sidecar to decode that opinion hash. if node decoded one sidecar it can store it in memory
and reuse for all following ballots with the same opinion hash.

@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Merging #5009 (637fdf4) into develop (0962268) will increase coverage by 0.0%.
Report is 1 commits behind head on develop.
The diff coverage is 90.6%.

@@           Coverage Diff           @@
##           develop   #5009   +/-   ##
=======================================
  Coverage     77.0%   77.1%           
=======================================
  Files          257     257           
  Lines        30236   30254   +18     
=======================================
+ Hits         23311   23335   +24     
+ Misses        5399    5394    -5     
+ Partials      1526    1525    -1     
Files Changed Coverage Δ
tortoise/tortoise.go 89.6% <90.3%> (+0.2%) ⬆️
tortoise/state.go 97.3% <100.0%> (ø)

... and 2 files with indirect coverage changes

@dshulyak
Copy link
Contributor Author

bors merge

bors bot pushed a commit that referenced this pull request Sep 20, 2023
related: #3006

it also reduced 300MB of used memory on my machine.

ballot signs opinion hash, and provides sidecar to decode that opinion hash. if node decoded one sidecar it can store it in memory
and reuse for all following ballots with the same opinion hash.
@bors
Copy link

bors bot commented Sep 20, 2023

Pull request successfully merged into develop.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title tortoise: reuse decoded votes [Merged by Bors] - tortoise: reuse decoded votes Sep 20, 2023
@bors bors bot closed this Sep 20, 2023
bors bot pushed a commit that referenced this pull request Sep 20, 2023
related: #3006
includes: #5009

this improved recovery by 20s on my computer, from 1m to 40s. will upload benchmarks from source before merge
bors bot pushed a commit that referenced this pull request Sep 20, 2023
related: #3006
includes: #5009

this improved recovery by 20s on my computer, from 1m to 40s. will upload benchmarks from source before merge
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.

2 participants