Linked by ebasconp on Fri 10th Jun 2011 22:22 UTC
Benchmarks "Google has released a research paper that suggests C++ is the best-performing programming language in the market. The internet giant implemented a compact algorithm in four languages - C++, Java, Scala and its own programming language Go - and then benchmarked results to find 'factors of difference'."
Thread beginning with comment 477185
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[5]: GCC isn't all that great
by Megol on Tue 14th Jun 2011 14:26 UTC in reply to "RE[4]: GCC isn't all that great"
Member since:

"for (i = a_len < b_len ? a_len : b_len ; i > 0 ; ) {
a[i] += b[i];

I'm pretty sure this is a terrible idea because it will mess up all the cache lines and pre-fetching if you walk through memory backwards.

No. Prefetchers (in every processor I've touched) support negative strides and working backwards have no performance problems.

Reply Parent Score: 1