должна работать до какого-то момента, если не остановитья не вижу ничего иного, как ручная остановка приложения. Самый простой способ я и написал в ответе.
KeyboardInterrupt
и по нажатию ctrl + c
внутри самого скрипта останавливать процессы. Programs compiled into native code at compile time tend to be faster than those translated at run time, due to the overhead of the translation process. Newer technologies such as just-in-time compilation, and general improvements in the translation process are starting to narrow this gap, though. Mixed solutions using bytecode tend toward intermediate efficiency.