[FFmpeg-devel] [PATCH 3/3] configure: speedup x2-x8

avih avihpit at yahoo.com
Mon Aug 27 19:09:20 EEST 2018

I was similarly frustrated with the long runtime of configure, hence I decided to try and do something about it.
Luckily, it it was only about 50 LOC which were responsible for it. It could have been much more daunting if the slowness was all over the place.
Finding those 50 lines was another matter though. I had to build a nice magnet (time.sh) to find the needles in this haystack ;)

Glad others like it too.

    On Monday, August 27, 2018 5:49 PM, James Almer <jamrial at gmail.com> wrote:

 On 8/25/2018 6:15 PM, Michael Niedermayer wrote:
> On Sat, Aug 25, 2018 at 06:11:10PM +0000, avih wrote:
>> For overview see:
>> http://ffmpeg.org/pipermail/ffmpeg-devel/2018-August/233665.html
>> Attached is patch 3/3 which was at "main.patch" of that message.
>> After the previous speedups, configure spent 20-60% of its runtime
>> at check_deps(). It's particularly slow with bash. After some local
>> optimizations - mainly avoid pushvar/popvar and abort early in one
>> notable case (empty deps), it's now x4-x25 faster.
> patches 1-3 work here fine on linux x86-64 / 32, arm, mips, wine+mingw32/64

Just pushed them.

Thanks a lot Avi for this! Configure slowness has been pretty
discouraging for devs for some time now.
ffmpeg-devel mailing list
ffmpeg-devel at ffmpeg.org


More information about the ffmpeg-devel mailing list