News for hackers. Stuff that matters.
Re:How I Got a 2x Speedup With One Line of Code by raverbashing on Friday November 15, 2013 @02:13AM (#6738154)
No, please, don't

Not like this.

Yes, the +3 deserves an explanation (but something better than "because of experimentation" - my guess is because it's big enough to get the next cache line and small enough to not get something that won't be needed)

And I find it funny when people on HN are shibeing __builtin_prefetch like "wow, I just heard about caches and prefetching data how amazing"

Re:How I Got a 2x Speedup With One Line of Code by chris_wot on Friday November 15, 2013 @05:16AM (#6738642)
That last line seems a little snarky. Not everyone knows built in prefetch directives in gcc.