Expanded Loops | Ugly and Efficient! 👹 | Part 2

Moving forward with optimizing and uglifying for loops, the next technique I want to write about here is loop tiling or loop blocking. If you’re coding a program that heavily relies on for loops, this method will greatly help improve the performance of the program. As the name suggests, this technique divides large loops into smaller tiles or blocks to better fit into the processor cache. The problem with large loops and heavy code blocks is that they take up much of our precious CPU’s cache space, which is crucial for processing tasks....

March 8, 2023 Â· 5 min Â· 854 words Â· Me