Project

Profile

Help

Bug #5483

closed

Failure to optimize SEQ[position() = 1 to $n]

Added by Michael Kay over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Performance
Sprint/Milestone:
-
Start date:
2022-05-10
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
11, trunk
Fix Committed on Branch:
11, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java

Description

By design, a filter expression of the form SEQ[position() = 1 to $n] should be optimised to subsequence(SEQ, 1, $n).

This isn't happening (revealed by xslt30-extra test case opt-016). The subexpression 1 to $n is extracted into a variable, which means that the pattern posiiton() = 1 to $n doesn't get recognized.

Please register to edit this issue

Also available in: Atom PDF