# HG changeset patch # User lorenm # Date 1190959578 0 # Node ID 81fff8db79ccf647bd06af8d0b0fa57471f9d221 # Parent d7970c9e3049943012927d7366afaa0ef331f5ff 2.5x faster compute_autocorr() overall flac encoding: 15-50% faster on core2, 8-30% on k8, 2-20% on p4 (depending on compression_level) diff -r d7970c9e3049 -r 81fff8db79cc flacenc.c --- a/flacenc.c Thu Sep 27 11:29:21 2007 +0000 +++ b/flacenc.c Fri Sep 28 06:06:18 2007 +0000 @@ -607,21 +607,30 @@ static void compute_autocorr(const int32_t *data, int len, int lag, double *autoc) { - int i, lag_ptr; + int i, j; double tmp[len + lag]; double *data1= tmp + lag; apply_welch_window(data, len, data1); - for(i=0; i