-
Couldn't load subscription status.
- Fork 22
AST deduplication #615
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
AST deduplication #615
Conversation
PR Reviewer Guide 🔍(Review updated until commit 86e1a72)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 86e1a72
Previous suggestionsSuggestions up to commit ecb10ab
|
|
Persistent review updated to latest commit 86e1a72 |
PR Type
Enhancement
Description
Use a persistent ThreadPoolExecutor for all async tasks
Deduplicate candidates by AST normalization
Queue AI refinement calls via futures and aggregate results
Log
optimizations_postmapping postprocessed codeDiagram Walkthrough
File Walkthrough
aiservice.py
Add optimizations_post to log_resultscodeflash/api/aiservice.py
optimizations_postparam tolog_resultssignatureoptimizations_postin request payloadfunction_optimizer.py
Refactor candidate loop with async executor & AST dedupcodeflash/optimization/function_optimizer.py
refine_optimizationsto return Futureoptimizations_postintolog_resultscalloptimizer.py
Ensure executor shutdown on exitcodeflash/optimization/optimizer.py
finallyblock