Is Python a CPU monster?

  • Thread starter Thread starter Deleted member 1869940
  • Start date Start date
D

Deleted member 1869940

Guest
Is there any CPU optimisation when running python on Windows DC that nobody knows about?
I'd like to ask if there's anything I don't know.

Oh god my machines are going to catch fire!
 
Python is ok.
You should optimize your code... (for ex. use threading in python)
 
Making python run faster on windows DC involves finding ways to work around the Global Interpreter Lock. You can try using multiprocessing for tasks that heavily use the CPU using libraries like NumPy or Pandas for number crunching and analyzing your code to find areas that are slowing it down. For tasks that are more focused on input output operations you might want to look into asynchronous programming. Another option is to try PyPy, a quicker version of Python. If you are working with big sets of data think about using specialized libraries such as Dask or Vaex. Keep in mind that optimizing your code often means making compromises so make sure to thoroughly test and analyze your changes.

I tried my best to help you...
Is there any CPU optimisation when running python on Windows DC that nobody knows about?
I'd like to ask if there's anything I don't know.

Oh god my machines are going to catch fire
 
still have to learn alot how to make softwares/bots works at very large amount of threads by taking less usage
 
Do you use multithreading? Maybe multiprocessing or asyncio will be better?
You can also put your scripts into vps/dedicated server or colab.
 
Back
Top