News for hackers. Stuff that matters.
Re:Why is processing a sorted array faster than an unsorted ... by wmf on Wednesday October 10, 2012 @06:06PM (#4638446)
Fortran defaults to strict aliasing and C defaults to loose aliasing, leading to naive Fortran programs sometimes being optimized better than equivalent naive C programs. Or as some people say, "Fortran is faster than C".
Re:Why is processing a sorted array faster than an unsorted ... by thwest on Wednesday October 10, 2012 @06:50PM (#4638577)
Another lesson from Fortran is to include arrays as a native type in your language. Intel continues to push their Fortran compiler whenever you shop for their numeric C libraries with some convincing benchmarks. https://speakerdeck.com/u/multicoreworld/p/james-reinders-in...