[FFmpeg-devel] [PATCH] avfilter/vf_deshake: replace qsort with AV_QSORT

Nicolas George george at nsup.org
Sat Oct 31 11:19:04 CET 2015


Le nonidi 9 brumaire, an CCXXIV, Ganesh Ajjanagadde a écrit :
> Sample benchmark (x86-64, Haswell, GNU/Linux):
> File: original from https://trac.ffmpeg.org/ticket/1430
> command: ffmpeg -stream_loop 8 -i file.webm -vf deshake=rx=64:ry=64 -f null -
> 
> Timer truncated at 1024 runs.
> new:
> 39676 decicycles in qsort,    1024 runs,      0 skips
> 
> old:
>   86783 decicycles in qsort,    1024 runs,      0 skips

What was inside the start/stop_timer block? I see that the qsort call is
after a very expensive loop, I suspect those few thousand cycles may be
completely negligible in front of the loop itself.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151031/86275835/attachment.sig>


More information about the ffmpeg-devel mailing list