Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C QUESTION

Name: Anonymous 2013-01-13 23:14

for(int i = ((a > b) ? x : y); i < c; i++){...}
How will this be compiled? Will it hurt performance due to lack of unrolling or something?

Name: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2013-01-14 7:46

>>9
Loop unrolling is obsolete on modern processors thanks to better hardware. It was most beneficial on the P4 with its huge pipeline, became somewhat contentious throughout the Core line, and slows things down with i7s and above.

http://www.agner.org/optimize/blog/read.php?i=142
http://x264dev.multimedia.cx/archives/201
tl;dr: The future of optimisation is code and data density. Unaligned accesses and stupid size/speed tradeoffs don't matter anymore, because smaller IS faster. (Sucks for you, RISCtards...)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List