Is Python a CPU monster?

Glenda Marks

New member
Joined
Jul 31, 2024
Messages
1
Points
0
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!
 

Penelope Buckridge

New member
Joined
Jul 31, 2024
Messages
1
Points
0
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...
 

Krystal Reynolds

New member
Joined
Jul 31, 2024
Messages
1
Points
0
still have to learn alot how to make softwares/bots works at very large amount of threads by taking less usage
 

Melissa Homenick

New member
Joined
Jul 31, 2024
Messages
1
Points
0
Do you use multithreading? Maybe multiprocessing or asyncio will be better?
You can also put your scripts into vps/dedicated server or colab.
 
Top