diff options
author | Роман Донченко <dpb@corrigendum.ru> | 2014-06-27 22:10:28 +0400 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2014-07-06 08:08:20 +0000 |
commit | afa8f21f56f1e65bb2ec37cffdf3422d15b45347 (patch) | |
tree | bbb9b85dfdcc347cc44ce681e724ea80eb857923 /doc | |
parent | 3490bc6eb923e7e8666f9ad9213b0f5010a91c03 (diff) | |
download | wireshark-afa8f21f56f1e65bb2ec37cffdf3422d15b45347.tar.gz wireshark-afa8f21f56f1e65bb2ec37cffdf3422d15b45347.tar.bz2 wireshark-afa8f21f56f1e65bb2ec37cffdf3422d15b45347.zip |
make-dissectors-reg: optimize by factoring out the loops
Instead of calling the grep/sed pipelines for each file, build the
list of files in the beginning and call each pipeline only once,
passing the list to the first grep.
This results in a massive speedup in Cygwin; in my test, the time
it takes to run make-dissector-reg . dissectors packet-*.c in dissectors/epan
is reduced from ~116 to ~3 seconds. I also tried it on NetBSD, where
the time do to the same goes from ~6 to ~0.5 seconds.
Amend makefile comments to elide mentions of invoking multiple processes
per file.
Change-Id: Iad441e7d2b6cc3669dada57646e2f8f6b987fd34
Reviewed-on: https://code.wireshark.org/review/2826
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions