This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit c41b6f302ecb04e7a4de8bf6afca5ed7a9115494 Author: Ramiro Polla <[email protected]> AuthorDate: Thu Nov 12 14:09:14 2026 +0100 Commit: Ramiro Polla <[email protected]> CommitDate: Wed Nov 18 14:58:31 2026 +0000 configure: drop empty extralibs entries before calling unique() Avoid running the quadratic unique() function over components with no extralibs. configure wall time on linux: 6.93s -> 6.77s Signed-off-by: Ramiro Polla <[email protected]> --- configure | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure b/configure index 227c2d2aec..795f7ec30d 100755 --- a/configure +++ b/configure @@ -973,6 +973,16 @@ resolve(){ eval $1=\$resolve_out } +# removes the names of empty variables from the list +drop_empty(){ + drop_empty_out= + eval drop_empty_in=\$$1 + for v in $drop_empty_in; do + eval test -n \"\$$v\" && drop_empty_out="$drop_empty_out$v " + done + eval $1=\$drop_empty_out +} + add_cppflags(){ append CPPFLAGS "$@" } @@ -8237,6 +8247,7 @@ flatten_extralibs(){ flatten_extralibs_wrapper(){ list_name=$1 flatten_extralibs $list_name + drop_empty $list_name unique $list_name resolve $list_name eval $list_name=\$\(\$ldflags_filter \$$list_name\) -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
