We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efa767c commit a2e9f25Copy full SHA for a2e9f25
codeflash/optimization/function_optimizer.py
@@ -3,7 +3,6 @@
3
import ast
4
import concurrent.futures
5
import os
6
-import shutil
7
import subprocess
8
import time
9
import uuid
@@ -405,9 +404,10 @@ def determine_best_candidate(
405
404
future_line_profile_results = None
406
try:
407
candidate = candidates.popleft()
408
- except IndexError as e:
+ except IndexError:
409
if done:
410
break
+ time.sleep(0.001) #sleep for 1millisecond
411
continue
412
candidate_index += 1
413
get_run_tmp_file(Path(f"test_return_values_{candidate_index}.bin")).unlink(missing_ok=True)
0 commit comments