Project

Profile

Help

Bug #5077

closed

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

Added by Dipak Shinde 12 months ago. Updated 10 months ago.

Status:
Closed
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()


Files

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.DuplicateMichael Kay2021-09-03

Actions
Actions #1

Updated by Michael Kay 12 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.

Actions #2

Updated by Dipak Shinde 12 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.
Actions #3

Updated by Dipak Shinde 12 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.
Actions #4

Updated by Dipak Shinde 12 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} ....................................

Actions #5

Updated by Dipak Shinde 12 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.
Actions #6

Updated by Dipak Shinde 12 months ago

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

Actions #7

Updated by Dipak Shinde 12 months ago

Please new comment in attachments.

Actions #8

Updated by Dipak Shinde 12 months ago

Dipak Shinde wrote:

Please find new comment in attachments.

Actions #9

Updated by Michael Kay 12 months ago

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

Updated by Michael Kay 12 months 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.

Actions #11

Updated by Michael Kay 10 months ago

  • Status changed from New to Closed

I am closing this as we do not have enough information to investigate it any further.

Please register to edit this issue

Also available in: Atom PDF