mike78 Hi there,
① Please go to BIOS and change the TDP to 65W , here is the tutorial https://buildin.ai/lizong/66f1daa8-7f9d-415d-a1f8-7d31454d8c8a
② Since this is for a specific script, you can attack the problem from the software side:
Use PyPy: If your script and its libraries are compatible, try running it on PyPy instead of the standard CPython interpreter. PyPy’s Just-In-Time (JIT) compiler can dramatically speed up CPU-bound tasks.
Profile Your Code: Use a profiler like cProfile to find the exact lines of code that are taking the most time. Is it the file loading? A specific calculation? This will tell you if the bottleneck is truly memory access or something else.
Optimize Data Structures: Can you use more efficient data types? For example, using Python arrays or NumPy arrays instead of lists for numerical data can provide a massive speedup and put less pressure on the memory subsystem.
Pre-compilation: Use Cython to compile performance-critical parts of your Python code into C extensions.