I am a beginner programmer, so a little lost here.
I wrote a small python function that takes a long time to execute depending on the scope of the search that is expected.
After a certain threshold, about a million entries, my program always seems lost. The Python package is not responding, but CPU usage remains constant by about 13%. Also I can not stop the execution of KeyboardInterrupt
So my question is: is it possible to increase CPU usage for my python program to make it work faster?
Side question: Any help on why the python shell stops responding? I do not use excessive memory, I just need to go through a large set as quickly as possible.
source
share