-
Notifications
You must be signed in to change notification settings - Fork 22
cleanup #457
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
cleanup #457
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
PR Type
Enhancement
Description
Wrap optimizer logic in try/finally
Ensure cleanup_generated_files always called
Invoke cleanup_temporary_paths after each iteration
Changes diagram
flowchart LR A["Start function optimization"] --> B["create_function_optimizer"] B --> C["optimize_function"] C --> D{"Optimization result"} D -->|any| E["cleanup_generated_files"] E --> F["cleanup_temporary_paths"]Changes walkthrough 📝
optimizer.py
Add cleanup and error-safe blockcodeflash/optimization/optimizer.py