loop-unrolling

Tag

Cards List
#loop-unrolling

Measuring Gauss-Seidel loop-carried dependency and fixing it via loop unrolling

Hacker News Top ↗ · 2026-09-15 Cached

The article investigates why the Gauss-Seidel method, which converges faster theoretically, performs slower than Jacobi due to loop-carried dependencies, and shows how loop unrolling can improve performance.

0 favorites 0 likes
#loop-unrolling

Quadrupling code performance with a "useless" if

Lobsters Hottest ↗ · 2026-07-13 Cached

A blog post demonstrates how adding a conditional check that appears useless can dramatically improve loop performance by allowing the CPU's branch predictor to eliminate data dependencies, achieving up to 4x speedup in a specific compression algorithm.

0 favorites 0 likes
#loop-unrolling

When compilers surprise you

Lobsters Hottest ↗ · 2026-04-19 Cached

Matt Godbolt explores compiler optimizations that convert an O(n) summation loop into an O(1) closed-form solution, highlighting how Clang and GCC employ sophisticated techniques like loop unrolling and mathematical simplification to dramatically improve code performance.

0 favorites 0 likes
← Back to home

Submit Feedback