Project

Profile

Help

Bug #5077

C#.Net: This "Evaluate()" statement take more time and memory consumption in 9.9.1.8 version.

Added by Dipak Shinde about 2 months ago. Updated about 1 month ago.

Status:
New
Priority:
High
Assignee:
Category:
.NET API
Sprint/Milestone:
Start date:
2021-09-03
Due date:
2021-09-03
% Done:

0%

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

Description

Below is statement: var evaluations = evaluator.Evaluate()

Saxon API Query.txt (995 Bytes) Saxon API Query.txt Dipak Shinde, 2021-09-03 11:40

Related issues

Has duplicate Saxon - Bug #5078: C#.Net: This "Evaluate()" statement take more time and memory consumption in 9.9.1.8 version.Duplicate2021-09-03

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

#1 Updated by Michael Kay about 2 months ago

Firstly, you need to tell us what you are comparing it with.

Secondly, you need to tell us exactly what you are doing: provide us with sample code that we can execute, preferably including the code you use to measure performance. And tell us what the run-time environment is.

Thirdly, tell us what performance degradation you are seeing. If it's a 5% increase, that's not something we would consider worth investigating, because in any release, some things will go a bit faster and some a bit slower. If it's running 10 times slower, that's something we would want to look at.

#2 Updated by Dipak Shinde about 2 months ago

Below are requested details:

    1. A per our business logic we have created rule(Xquery) and we are evaluating this with the help of evaluate method. 2 XQuery:

let $gReturnDataState := element{'ReturnDataState'} {''} let $gSchA...................

for $ReturnDataState at $currentReturnDataStatePos in if(....................

let $genSchA := false() let $genAllRealTangibleProperty...........

x:AllPropEndYrTotal x:ReturnState/x:ReturnDataState/x:SchA/x:AllRealTangibleProperty/x:AllPropEndYrTotal {$AllPropEndYrTotalData} ....................................

Code: XdmValue evaluations = evaluator.Evaluate();

  1. For few rules XQuery execution takes greater than 30GB memory.

#3 Updated by Dipak Shinde about 2 months ago

Dipak Shinde wrote:

Below are requested details:

  1. A per our business logic we have created rule(Xquery) and we are evaluating this with the help of evaluate method.
  2. XQuery:

let $gReturnDataState := element{'ReturnDataState'} {''} let $gSchA...................

for $ReturnDataState at $currentReturnDataStatePos in if(....................

let $genSchA := false() let $genAllRealTangibleProperty...........

x:AllPropEndYrTotal x:ReturnState/x:ReturnDataState/x:SchA/x:AllRealTangibleProperty/x:AllPropEndYrTotal {$AllPropEndYrTotalData} ....................................

Code: XdmValue evaluations = evaluator.Evaluate();

  1. For few rules XQuery execution takes greater than 30GB memory.

#4 Updated by Dipak Shinde about 2 months ago

XQuery:

let $gReturnDataState := element{'ReturnDataState'} {''} let $gSchA...................

for $ReturnDataState at $currentReturnDataStatePos in if(....................

let $genSchA := false() let $genAllRealTangibleProperty...........

x:AllPropEndYrTotal x:ReturnState/x:ReturnDataState/x:SchA/x:AllRealTangibleProperty/x:AllPropEndYrTotal {$AllPropEndYrTotalData} ....................................

#5 Updated by Dipak Shinde about 2 months ago

Dipak Shinde wrote:

Below are requested details:

    1. A per our business logic we have created rule(Xquery) and we are evaluating this with the help of evaluate method. 2 XQuery:

let $gReturnDataState := element{'ReturnDataState'} {''} let $gSchA...................

for $ReturnDataState at $currentReturnDataStatePos in if(....................

let $genSchA := false() let $genAllRealTangibleProperty...........

x:AllPropEndYrTotal x:ReturnState/x:ReturnDataState/x:SchA/x:AllRealTangibleProperty/x:AllPropEndYrTotal {$AllPropEndYrTotalData} ....................................

Code: XdmValue evaluations = evaluator.Evaluate();

  1. For few rules XQuery execution takes greater than 30GB memory.

#6 Updated by Dipak Shinde about 2 months ago

Please delete unnecessary comment, I am not able to delete comment.

#7 Updated by Dipak Shinde about 2 months ago

Please new comment in attachments.

#8 Updated by Dipak Shinde about 2 months ago

Dipak Shinde wrote:

Please find new comment in attachments.

#9 Updated by Michael Kay about 1 month ago

  • Has duplicate Bug #5078: C#.Net: This "Evaluate()" statement take more time and memory consumption in 9.9.1.8 version. added

#10 Updated by Michael Kay about 1 month ago

We're still waiting for answers to the same three questions:

(1) you say it takes longer in 9.9.1.8. Longer than what? What release are you comparing it with?

(2) we need to see the actual query and a sample source document that demonstrates the problem.

(3) we need to know what (space and time) measurement you have made, and how you made them.

Please register to edit this issue

Also available in: Atom PDF