Why two O(n²) loops can run 15× apart

작성자

카테고리:

← 피드로
r/programming · /u/Ok_Marionberry8922 · 2026-07-23 개발(SW)

Two nested loops can do the same work, have the same O(n²) complexity, and still run around 15× apart. A visual explainer on why: the RAM model, the memory wall, cache lines, locality, L1/L2/L3, prefetching, data layout and false sharing. It also covers how the…

원문 보기 ↗

코멘트

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다