echonest/echoprint-codegen — pull request #33 by jhurliman (2012-02-21 20:48:40+00:00)
Title: Removed a few branch statements from hot loops in Whitening::ComputeBlock()

This patch removes two branch statements from loops in the Whitening::ComputeBlock() function by giving one for loop a better starting condition and breaking the second for loop into two separate loops. The patch didn't appear to make a significant difference when profiling in debug mode, but when compiled with the default -O3 it cut the runtime of Whitening::ComputeBlock() from 480ms to 367ms with my 239 second test WAV file.