Project

General

Profile

Actions

Feature #4874

closed

optimize StrAXPath for simple expressions

Added by Reynaud Sylvain over 11 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Low
Assigned To:
Category:
Engine
Target version:
Start date:
08/01/2013
Due date:
% Done:

100%

Estimated time:

Description

try to reduce the number of instanciations and the number of evaluations

Actions #1

Updated by Reynaud Sylvain about 11 years ago

  • Category set to Engine
Actions #2

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.

Actions #3

Updated by Reynaud Sylvain about 11 years ago

  • Status changed from New to Resolved
  • % Done changed from 90 to 100
Actions

Also available in: Atom PDF