News for hackers. Stuff that matters.
Re:Optimizing C++ Code: Dead Code Elimination by eliasmacpherson on Wednesday August 14, 2013 @10:47AM (#6211795)
Got stung by this testing out of idle curiousity whether strncmp or memcmp was faster the other day.
Re:Optimizing C++ Code: Dead Code Elimination by deletes on Wednesday August 14, 2013 @12:40PM (#6212541)
So memcmp was faster, right?
Re:Optimizing C++ Code: Dead Code Elimination by eliasmacpherson on Wednesday August 14, 2013 @01:09PM (#6212769)
Didn't finish the job, realised code was optimised out by O3 and left it at that. Unoptimised strncmp was beating unoptimised memcmp, it was taking 1.900s to finish where memcmp was taking 2.178s over many iterations.