TLDR Web Dev · ARTICLES & TUTORIALS

SPEEDING UP YOUR CODE WHEN MULTIPLE CORES AREN’T AN OPTION

pythonspeed.com14 min read

Summary from the TLDR Web Dev newsletter

Parallelism is the practice of using multi-threading or multiprocessing to take advantage of multiple CPU cores for improved performance. There are still many optimizations you can make to lower-level code when parallelism isn’t available. This article explores various optimizations, including simplifying rounding operations, reducing memory usage by reusing arrays, and minimizing conditional statements.