refactor: 🧪 add debug output of how long the search took

TODO: Revert me!
This commit is contained in:
David Bailey 2023-04-13 09:58:29 +02:00
parent af5993681d
commit ba44b00943

View file

@ -89,8 +89,13 @@ module Comfpile
end
def processing_stack_find_next()
i = 0
@processing_stack.reverse_each do |a|
return a if a.waiting?
i += 1
if a.waiting?
puts "DBG - Found item after #{i} checks"
return a
end
end
nil