-
Notifications
You must be signed in to change notification settings - Fork 22
More metrics for determining Optimization Impact #824
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
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
⚡️ Codeflash found optimizations for this PR📄 51% (0.51x) speedup for
|
| data["optimization_impact"] = opt_impact_response[0] | ||
| new_explanation_with_opt_explanation = Explanation( | ||
| raw_explanation_message=f"Impact: {opt_impact_response[0]}\n Impact_explanation: {opt_impact_response[1]} END OF IMPACT EXPLANATION\nCALLING CONTEXT \n{calling_fn_details}\nEND OF CALLING CONTEXT\n" | ||
| + new_explanation.raw_explanation_message, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return the right parts, not the full llm output and add a label in the PR with the quality
User description
WIP
PR Type
Enhancement, Tests
Description
Add optimization impact plumbing to API
Introduce call analysis AST visitor
Add ripgrep-based code search helper
Extend models with impact metrics
Diagram Walkthrough
File Walkthrough
2 files
Add TODO metrics notes in optimization impact flowAdd example for ripgrep search usage7 files
Plumb optimizationImpact through suggest_changes payloadAdd ripgrep search helper and impact metrics stubExpose SAFE_GREP_EXECUTABLE via CompatDefine ImpactMetrics dataclass for impact dataCompute optimization impact and attach metrics stubForward optimization impact to suggestion APIImplement AST visitor for call and loop detection1 files
Add tests and demos for call visitor