summaryrefslogtreecommitdiffstats
path: root/doc/examples
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <[email protected]>2018-07-30 22:48:04 +0300
committerJames Almer <[email protected]>2018-08-27 11:34:10 -0300
commit923586a58f37deedeb01f742e4804bc36736a6bc (patch)
treef25a62e47c133bb1c81f10a08fb5f628102ea721 /doc/examples
parent58b81ac621aea1428aa9e7ca20ad45fc18dba9f7 (diff)
configure: speed up print_enabled_components()
x4 - x10 faster. Inside print_enabled components, the filter_list case invokes sed about 350 times to parse the same source file and extract different info for each arg. This is never instant, and on systems where fork is slow (notably MSYS2/Cygwin on windows) it takes many seconds. Change it to use sed once on the source file and set env vars with the parse results, then use these results inside the loop. Additionally, the cases of indev_list and outdev_list are very infrequent, but nevertheless they're faster, and arguably cleaner, with shell parameter substitutions than with command substitutions. Tested-by: Michael Niedermayer <[email protected]> Tested-by: Helmut K. C. Tessarek <[email protected]> Tested-by: Dave Yeo <[email protected]> Tested-by: Reino Wijnsma <[email protected]> Signed-off-by: James Almer <[email protected]>
Diffstat (limited to 'doc/examples')
0 files changed, 0 insertions, 0 deletions