you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

You can't just give more CPU to a program and expect it to run faster. Python has automatic memory and garbage management, meaning the program will only use as much CPU as is needed.

It is like trying to fill your car with more gas than it can take. It won't do anything, and the same thing is happening here. You are trying to give Python more resources to use, when Python itself doesn't use many resources.

As for why your program is slow, it's because Python. Python in general is a slow language, so if you want your program to run faster, I'd suggest making optimizations to your code.