Re: [FFmpeg-devel] [PATCH 2/6] lavc/flacenc: partially unroll loop in flac_enc_lpc_16

2014-08-12 Thread Michael Niedermayer
On Tue, Aug 12, 2014 at 11:22:03PM +0200, James Darnley wrote: > It now does 12 samples per iteration, up from 4. > > From 1.8 to 3.2 times faster again. 3.6 to 5.7 times faster overall. > Runtime is reduced by a further 2 to 18%. Overall runtime reduced by > 4 to 50%. > > Same conditions as be

[FFmpeg-devel] [PATCH 2/6] lavc/flacenc: partially unroll loop in flac_enc_lpc_16

2014-08-12 Thread James Darnley
It now does 12 samples per iteration, up from 4. >From 1.8 to 3.2 times faster again. 3.6 to 5.7 times faster overall. Runtime is reduced by a further 2 to 18%. Overall runtime reduced by 4 to 50%. Same conditions as before apply. --- libavcodec/flacenc.c|2 +- libavcodec/x86/f