Skip to content

Conversation

@birdychang
Copy link
Contributor

Using bitfield.MultiMerge once instead of bitfield.MergeBitFields repeatedly should reduce the time by 50%.

@birdychang birdychang changed the title Improve LoadSectorState performance. Improve LoadSectorState performance Nov 4, 2022
@birdychang birdychang requested review from frrist and placer14 November 4, 2022 08:13
@codecov-commenter
Copy link

codecov-commenter commented Nov 4, 2022

Codecov Report

❌ Patch coverage is 0% with 26 lines in your changes missing coverage. Please review.
✅ Project coverage is 34.2%. Comparing base (85faa23) to head (9e9d5e9).
⚠️ Report is 197 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #1086     +/-   ##
========================================
- Coverage    34.3%   34.2%   -0.2%     
========================================
  Files          44      44             
  Lines        2932    2945     +13     
========================================
  Hits         1008    1008             
- Misses       1828    1841     +13     
  Partials       96      96             
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

_, span := otel.Tracer("").Start(ctx, "LoadSectorState")
defer span.End()

sectorStates := &SectorStates{}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
sectorStates := &SectorStates{}

}); err != nil {
return nil, err
}
var err error
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
var err error
var err error
var sectorStates = &SectorStates{}

@placer14
Copy link
Contributor

placer14 commented Nov 7, 2022

Great initial contribution! 🙇

@placer14 placer14 changed the title Improve LoadSectorState performance fix: Use bitfield.MultiMerge to improve LoadSectorState performance Nov 7, 2022
@birdychang birdychang merged commit 2ae8b1a into master Nov 7, 2022
@birdychang birdychang deleted the birdy/improve-load-sector-state branch November 7, 2022 22:59
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.

4 participants