Skip to content

Optimize analyzer with parallel package processing#1466

Merged
ccojocar merged 1 commit intosecurego:masterfrom
oittaa:perf/optimized-parallel-analyzer-v2
Jan 14, 2026
Merged

Optimize analyzer with parallel package processing#1466
ccojocar merged 1 commit intosecurego:masterfrom
oittaa:perf/optimized-parallel-analyzer-v2

Conversation

@oittaa
Copy link
Contributor

@oittaa oittaa commented Jan 14, 2026

  • Memory optimization
  • Public API compatibility
  • Stateless private functions

When Go version requirement is updated to at least 1.25 we can drop golang.org/x/sync/errgroup https://pkg.go.dev/sync@master#WaitGroup.Go

On my machine this is a ~8x speedup against big projects like CockroachDB.

- Memory optimization
- Public API compatibility
- Stateless private functions
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 85.85859% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.00%. Comparing base (1216c9b) to head (0352631).
⚠️ Report is 163 commits behind head on master.

Files with missing lines Patch % Lines
analyzer.go 85.85% 24 Missing and 4 partials ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1466      +/-   ##
==========================================
+ Coverage   68.49%   69.00%   +0.50%     
==========================================
  Files          75       81       +6     
  Lines        4384     6271    +1887     
==========================================
+ Hits         3003     4327    +1324     
- Misses       1233     1727     +494     
- Partials      148      217      +69     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ccojocar ccojocar merged commit 726d847 into securego:master Jan 14, 2026
6 checks passed
@oittaa oittaa deleted the perf/optimized-parallel-analyzer-v2 branch January 14, 2026 17:20
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