Can speeding up your computer make tasks quicker?
Image: USAF, Public domain, via Wikimedia Commons
Can speeding up your computer make tasks quicker?
Imagine you're baking cookies and need to mix ingredients repeatedly. Each time you mix, you have to go back and forth to grab more ingredients, slowing you down.
Loop unrolling speeds up your computer by reducing the number of trips back and forth to grab ingredients. It's like having all the ingredients ready next to your mixing bowl.
Example
If you normally mix 10 batches of cookies, unrolling the loop means you mix 20 batches at once, cutting down the trips you need to make.
Remember this
Loop unrolling reduces the overhead of repeatedly fetching data, making tasks faster.
Text adapted from Wikipedia, licensed under CC BY-SA 4.0.
loop unrolling does: trades code size for reduced loop overhead
Can we speed up our computer programs?
General-purpose computing on graphics processing units
Did you know your computer can do more than just compute numbers?
Triton differs from CUDA
Why does a super-fast computer sometimes run slower than a regular one?
kernel fusion reduces memory bandwidth bottleneck
Can you imagine faster video games without waiting for loading screens?
instruction-level parallelism (ILP) achieves: multiple operations per clock cycle
Ever wondered how computers can do so many tasks at once?
Delay-line memory
CPU speed grows faster than memory speed
Swipe through 100 ML concepts daily
Open Pocket Polymath