Wireshark-commits: [Wireshark-commits] rev 44954: /trunk/tools/ /trunk/tools/: make-dissector-reg.p
Date: Mon, 17 Sep 2012 21:30:25 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=44954

User: morriss
Date: 2012/09/17 02:30 PM

Log:
 Rather than reading the dissectors line by line and searching for the
 registration and handoff routines in each line, read the whole file into
 memory and then do one findall() search. Store the matches in sets to avoid
 duplication.
 
 (This also simplifies the number of regexps we're looking for.)
 
 This speeds up the generation of register.c (when there is no cache)
 significantly (on my system the time taken drops from ~32 seconds to ~5
 seconds).

Directory: /trunk/tools/
  Changes    Path                     Action
  +30 -35    make-dissector-reg.py    Modified