Re: [PATCHv2 1/3] hvsupport: use a regex instead of XML::XPath

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

 



On Tue, Jul 19, 2016 at 18:55:52 +0200, Ján Tomko wrote:
> When generating the hvsupport.html.in file, we parse the -api.xml
> files generated by apibuild.py to know in which HTML file the API
> function is.
> 
> Doing an XPath query for every single 'function' element in the
> file is inefficient.
> 
> Since the XML file is generated by another of our build scripts
> (apibuild.py, using Python's standard 'output.write' XML library),
> just find the function name->file mapping by a regex upfront.
> 
> Also add a note about this next to the line that generates it
> in apibuild.py and do not check if XML::XPath is installed in
> bootstrap since we no longer use it.
> ---
>  bootstrap.conf    |  1 -
>  docs/apibuild.py  |  1 +
>  docs/hvsupport.pl | 33 ++++++++++++++++++++++++++++-----
>  3 files changed, 29 insertions(+), 6 deletions(-)

ACK

--
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]