Project

Profile

Help

Bug #4947

closed

Saxon 9.9 performs slower compared to Saxon 9.7 on nested loops

Added by K L over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2021-03-24
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
10, 9.9, trunk
Fix Committed on Branch:
10, trunk
Fixed in Maintenance Release:
Platforms:

Description

Hi, We are currently using Saxon9.9 PE. Previously, we used Saxon9.7 PE. We have an xquery which has 4 levels of loops (3nested) with where conditions on the for expressions. It has been noted that executing in Saxon 9.9 took much longer than Saxon 9.7 the more there are nested loops.

In the sample xquery attached, with 1000rows of input,

  • Saxon 9.7 took an average of 138665ms.
  • Saxon 9.9 took an average of 237548ms.

If tested only with 3levels, it was much faster:

  • 9.7 at 3335ms
  • 9.9 at 5135ms

Based on the profiler, it took more time on the where clause in 9.9 compared to 9.7

Thanks.


Files

test4Loops.xquery (3.14 KB) test4Loops.xquery K L, 2021-03-24 17:50
test_xml_1k.txt (60.6 KB) test_xml_1k.txt K L, 2021-03-24 17:50

Please register to edit this issue

Also available in: Atom PDF