[FFmpeg-devel] [PATCH] h264: assembly version of get_cabac for x86_64 with PIC

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Apr 14 18:09:03 CEST 2012

On Sat, Apr 14, 2012 at 03:44:35AM +0200, Roland Scheidegger wrote:
> I ran some numbers (with ffmpeg -benchmark so not only cabac) and the
> assembly get_cabac improves performance in some test video by roughly
> 3%. Enabling the assembly decode_significance function improves
> performance by another 2.5% or so, overall I get just about a bit more
> than a 5% increase. Dunno if I should be disappointed by that or not but
> it's better than nothing...

Honestly? 5% by just optimizing a few functions (particularly for one
of the codecs that already is among the better optimized ones) is a
_huge_ improvement.
I've worked on projects where I was happy to get 0.5% to 1% after a
few hours work...

More information about the ffmpeg-devel mailing list