But when I disable those 2 functions the code speed goes up to normal.
Also if I disable those 2 and just start a dummy thready having a target on this function -
def dummy():
while True:
for i in range(2):
if i == 2:
continue
the speed again slows down drastically. Including this new dummy, I am having just 3 threads in total on an i7 processor which can easily support 6-8 threads too(tried in some other project). Adding this dummy thread to an earlier project(normal python) having 6 threads does not cause any slowdown