News for hackers. Stuff that matters.
Re:When Big O Fools You by hcs on Tuesday August 23, 2016 @03:41PM (#12346841)
Memory access time is a constant multiplier, whether it hits or misses the cache. There can be a big difference in that constant depending on the access pattern, but it is still considered a constant factor.

Yes, random access (missing the cache every time) may be 100x slower than sequential (hitting the cache almost always), but if you're iterating through an array twice as large, it will still be 100x slower.

Re:When Big O Fools You by JohnLeTigre on Tuesday August 23, 2016 @03:53PM (#12346937)
I agree, on the same machine, the slow-downs are constant for each level of cache and for ram access.