-
Notifications
You must be signed in to change notification settings - Fork 22
Safer while loop when processing optimization candidates
#232
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 🔍(Review updated until commit 9b6dfc4)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 9b6dfc4
Previous suggestionsSuggestions up to commit 1b13456
|
|
Persistent review updated to latest commit 9b6dfc4 |
|
@KRRT7 ready to merge |
User description
Current loop is structured as an infinite loop which terminates when certain conditions are met, it seems at the moment that there aren't any edge cases which could lead to an infinite loop. I am creating this PR just in case we encounter such a case.
PR Type
Bug fix
Description
Replace infinite loop with conditional queue
Remove IndexError exception for empty deque
Wait for pending line profiler futures
Update candidate count and logging
Changes walkthrough 📝
function_optimizer.py
Refactor candidate processing loopcodeflash/optimization/function_optimizer.py
while Truetowhile candidatesIndexErroron pop