Actions
Feature #4874
closedoptimize StrAXPath for simple expressions
Start date:
08/01/2013
Due date:
% Done:
100%
Estimated time:
Description
try to reduce the number of instanciations and the number of evaluations
Updated by Reynaud Sylvain about 11 years ago
- Assigned To set to Reynaud Sylvain
- Target version set to 2.0
- % Done changed from 0 to 90
Replace module straxpath
with new module xpath-absolute
This new module improves performance (same memory consumption, CPU usage reduced):
- create DOM objects only for potentially selected nodes and their ancestors.
- evaluate XPath predicates only for nodes that match depth, namespace and name of potentially selected nodes.
- attribute, text and comment nodes are tested only if their parent element matches the parent of potentially selected nodes.
It also improves reliability: XPath expressions that can not be reliably evaluated in streaming mode are evaluated on a full DOM tree instead.
It supports XML comments.
It has no dependency on any Lavoisier module.
Updated by Reynaud Sylvain about 11 years ago
- Status changed from New to Resolved
- % Done changed from 90 to 100
Actions