← Back to team overview

pkg-perl-maintainers team mailing list archive

[Bug 701535] [NEW] Add an xpath evaluator script

 

Public bug reported:

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.

** Affects: libxml-libxml-perl (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Debian
Perl Group, which is subscribed to libxml-libxml-perl in ubuntu.
https://bugs.launchpad.net/bugs/701535

Title:
  Add an xpath evaluator script



Follow ups

References