[PATCHv2 0/3] Speed up hvsupport.pl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]