[Bug 701535] Re: Add an xpath evaluator script
Adrian Wilkins
701535 at bugs.launchpad.net
Tue Dec 1 10:21:06 UTC 2015
** Attachment added: "Improved version with more switches"
https://bugs.launchpad.net/ubuntu/+source/libxml-libxml-perl/+bug/701535/+attachment/4527886/+files/xpath2
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to libxml-libxml-perl in Ubuntu.
https://bugs.launchpad.net/bugs/701535
Title:
Add an xpath evaluator script
Status in libxml-libxml-perl package in Ubuntu:
New
Bug description:
Binary package hint: libxml-libxml-perl
libxml-xpath-perl supplies /usr/bin/xpath as a means to extract nodes using XPath
on the command line.
XML::XPath is very slow, so this script is too.
Patching this script to use XML::LibXML instead produces a > 10x
speedup.
Very little effort is required as XML::LibXML tries hard to replicate the API of
XML::XPath
Test query run over an 8MB XML file :
/usr/bin/xpath : 30.8s real time
/usr/bin/xpath2 : 2.2s real time
Need I say more?
Enclosed my hasty port of the original script with a few comments.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libxml-libxml-perl/+bug/701535/+subscriptions
More information about the foundations-bugs
mailing list