Is there some modules we can swap out HTML::TreeBuilder and XML::XPathEngine which are either faster or will at least push more of the cost into the parsing and creation of the tree instead of the searching?
We've recently started testing our dynamically generated HTML. However it's taking much longer now for the test suite to complete. We did some profiling on our slowest test file and found our 95% percent of the time spent in XML::XPathEngine which is the searching we do. However, less than half the tests are HTML related.