1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

optimize by using .recycle()

This commit is contained in:
Shlomi Fish 2020-06-20 13:45:48 +03:00
parent 18a460a1e7
commit 38def5a0e7

View file

@ -1231,8 +1231,9 @@ class BlackHoleSolver_Hint(Base_Solver_Hint):
if DEBUG:
print('--------------------\n', board, '--------------------')
if use_bh_solve_lib:
global bh_solve_lib_obj
bh_solve_lib_obj = bh_solve_lib_obj.new_bhs_user_handle()
# global bh_solve_lib_obj
# bh_solve_lib_obj = bh_solve_lib_obj.new_bhs_user_handle()
bh_solve_lib_obj.recycle()
bh_solve_lib_obj.read_board(
board=board,
game_type=game_type['preset'],