[libvirt] [PATCHv2 0/3] Speed up hvsupport.pl

Ján Tomko jtomko at redhat.com
Tue Jul 19 16:55:51 UTC 2016


This reduces the script execution time from 14.7s to 60 ms.
Since this was by far the longest taking target from the docs/ directory
and make does not parallelize across Makefiles, the savings are similar
for a complete build from a fresh git checkout.

The second patch shaves off 8.2s, the third 6.4s and the last one shaves
off half of the remaining time.

v2:
* renamed parseAPIXML to getAPIFilenames
* documented getAPIFilenames
* comment in apibuild.py above the line that generates the data
  consumed by hvsupport.pl
* more verbose commit messages

Ján Tomko (3):
  hvsupport: use a regex instead of XML::XPath
  hvsupport: construct the group regex upfront
  hvsupport: skip non-matching lines early

 bootstrap.conf    |  1 -
 docs/apibuild.py  |  1 +
 docs/hvsupport.pl | 69 +++++++++++++++++++++++++++++++++++++------------------
 3 files changed, 48 insertions(+), 23 deletions(-)

-- 
2.7.3




More information about the libvir-list mailing list