First, are your queries optimized? It is very easy with XPath to write a very expensive query that needs to traverse the entire tree (think //p). Then are your tests separate processes? XML::XPathEngine caches the parse tree for queries, but only within the same process of course. That might be one reason why the tests run slower.
That said it the XPath engine _is_ rather slow. Patches or replacement engines are welcome ;--) One way I can think of, to speed it up, might be to allow placeholders instead of values in the queries.
In reply to Re: XPath searching too slow
by mirod
in thread XPath searching too slow
by dietbuddha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |