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

blockservice: optimize getBlocks filter by not rescanning the already valid leading elements #557

Conversation

Jorropo
Copy link
Contributor

@Jorropo Jorropo commented Jan 15, 2024

We would scan the valid leading elements twice.

@Jorropo Jorropo force-pushed the 01-15-blockservice_optimize_getBlocks_filter_by_not_rescanning_the_already_valid_leading_elements branch from 3dca97c to 2fbaf0b Compare January 15, 2024 06:45
Copy link

codecov bot commented Jan 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7e0cfb1) 65.56% compared to head (b2110e6) 65.54%.

Impacted file tree graph

@@                                 Coverage Diff                                  @@
##           01-15-blockservice_add_WithContentBlocker_option     #557      +/-   ##
====================================================================================
- Coverage                                             65.56%   65.54%   -0.02%     
====================================================================================
  Files                                                   204      207       +3     
  Lines                                                 25583    25654      +71     
====================================================================================
+ Hits                                                  16773    16815      +42     
- Misses                                                 7335     7361      +26     
- Partials                                               1475     1478       +3     
Files Coverage Δ
blockservice/blockservice.go 80.12% <100.00%> (+0.30%) ⬆️

... and 15 files with indirect coverage changes

… valid leading elements

We would scan the valid leading elements twice.
@Jorropo Jorropo force-pushed the 01-15-blockservice_add_WithContentBlocker_option branch from ec8bcb6 to 7e0cfb1 Compare January 15, 2024 07:58
@Jorropo Jorropo force-pushed the 01-15-blockservice_optimize_getBlocks_filter_by_not_rescanning_the_already_valid_leading_elements branch from 2fbaf0b to b2110e6 Compare January 15, 2024 07:58
@Jorropo
Copy link
Contributor Author

Jorropo commented Jan 15, 2024

Closed in favor of #558

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant