Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Myths Programmers Believe about CPU Caches. Parent comment
Started with a pair of loops for each image, foreach col, foreach row.
Problem: C++ 2d arrays are row-col not col-row.
Halfway through multi-threaded performance was much worse than single threaded.
Eventually we switched to row-col processing, single-threaded was fast enough, back to two loops per image.
There are no comments on this comment yet.
Started with a pair of loops for each image, foreach col, foreach row.
Problem: C++ 2d arrays are row-col not col-row.
Halfway through multi-threaded performance was much worse than single threaded.
Eventually we switched to row-col processing, single-threaded was fast enough, back to two loops per image.