[FFmpeg-devel] [PATCH] Use ff_thread_once() to initialize sin/cos static tables.

Derek Buitenhuis derek.buitenhuis at gmail.com
Sun Oct 25 12:19:53 CET 2015


On 10/25/2015 11:09 AM, Michael Niedermayer wrote:
> on ARM (cubox) this changes
> time ./ffmpeg -i ~/fate-suite/qt-surge-suite/surge-2-16-B-QDM2.mov
> from
> real    0m0.028s
> user    0m0.010s
> sys     0m0.010s
> 
> real    0m0.028s
> user    0m0.020s
> sys     0m0.000s
> 
> 
> to
> 
> real    0m0.050s
> user    0m0.020s
> sys     0m0.030s
> 
> real    0m0.050s
> user    0m0.030s
> sys     0m0.010s

One could argue this is not a representative sample. It's a single small file,
which must always init (as opposed to a longer running process such as Chrome.
Whereas if you have a longer sample, it wouldn't even be within the margin of
error, I bet.

- Derek


More information about the ffmpeg-devel mailing list