Project

Profile

Help

Bug #2489

closed

Performance for pattern with first position predicate

Added by Debbie Lockett about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Sprint/Milestone:
Start date:
2015-10-30
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.6
Fix Committed on Branch:
9.6
Fixed in Maintenance Release:
Platforms:

Description

Poor performance in Saxon 9.6.0.7 for stylesheet with template match pattern body/text()[1][. = ' ']

Non linear performance as size of input XML is increased (where the number

nodes increases, but the number of children of nodes does not).

As reported by user on help forum https://saxonica.plan.io/boards/3/topics/6209.

Actions #1

Updated by Debbie Lockett about 9 years ago

  • Status changed from New to Resolved
  • Assignee set to Debbie Lockett
  • Priority changed from Low to Normal

Patch committed to subversion on 9.6 branch. Added some basic optimisation for patterns with a position predicate: in the matchesBeneathAnchor method of SimplePositionalPattern, for the getSiblingPosition call use a limit which depends on the required position (rather than being arbitrary).

No corresponding change for the 9.7 development branch, since other new changes already do more optimisation.

Actions #2

Updated by O'Neil Delpratt about 9 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in version set to 9.6.0.8

Bug fix applied in the Saxon 9.6.0.8 maintenance release

Actions #3

Updated by O'Neil Delpratt about 9 years ago

  • Applies to branch 9.6 added
  • Fix Committed on Branch 9.6 added
  • Fixed in Maintenance Release 9.6.0.8 added
Actions #4

Updated by O'Neil Delpratt about 9 years ago

  • Sprint/Milestone set to 9.6.0.8

Please register to edit this issue

Also available in: Atom PDF