Project

Profile

Help

Bug #2825

closed

XQuery performance degradation with Saxon-HE 9.7.0.6

Added by Gunther Rademacher over 8 years ago. Updated over 7 years ago.

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

100%

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

Description

The attached XQuery code is a REx parser that was generated from the EcmaScript grammar at http://bottlecaps.de/rex/EcmaScript.ebnf. It also has some extra tracing on some parsing functions.

Originally I had observed that a similar parser seemed not to terminate, but some investigation showed that it indeed works, however doing a lot of excessive work.

Using this command line to parse a single integer literal,

java net.sf.saxon.Query Ecmascript.xquery input={1}

the parser terminates quickly when run on 9.7.0.5, tracing 96 lines. On 9.7.0.6, there are 450924 trace lines. The result is OK, though.


Files

EcmaScript.xquery (472 KB) EcmaScript.xquery Gunther Rademacher, 2016-07-05 23:13

Please register to edit this issue

Also available in: Atom PDF