Skip to content

feat(soroban): call-frequency analyzer, CPU cost estimator, opt previ… - #857

Merged
mijinummi merged 1 commit into
MDTechLabs:mainfrom
Cedarich:feature/soroban-call-freq-cpu-opt-preview-regression
Aug 28, 2026
Merged

feat(soroban): call-frequency analyzer, CPU cost estimator, opt previ…#857
mijinummi merged 1 commit into
MDTechLabs:mainfrom
Cedarich:feature/soroban-call-freq-cpu-opt-preview-regression

Conversation

@Cedarich

Copy link
Copy Markdown
Contributor

Closes #802, #808, #807, #806

Summary

Implements four Soroban optimization capabilities for GasGuard:

  1. Call frequency analyzer — tracks internal helper call relationships, counts repeats, surfaces hot paths
  2. CPU cost estimator — ranks expensive computational patterns with relative cost scores
  3. Optimization preview API — returns proposed fixes (confidence, diffs, estimated impact) without modifying source
  4. Regression checker — re-runs analysis after fixes and flags newly introduced high/critical findings

Acceptance

  • Call frequency analyzer + relationships + repeated paths + findings
  • CPU cost estimator + expensive patterns + estimates in findings + tests
  • Preview API + confidence + diffs + impact + severity filter + API tests
  • Regression checker + post-fix analysis + new-finding detection + report

Test

npm test -- call-frequency
npm test -- cpu-cost
npm test -- optimization-preview
npm test -- optimization-regression

closes #802
closes #807
closes #806
closes #808

@drips-wave

drips-wave Bot commented Aug 28, 2026

Copy link
Copy Markdown

@Cedarich Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@mijinummi
mijinummi merged commit 596e5ee into MDTechLabs:main Aug 28, 2026
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants