Skip to content

Speed-up determining the position of a node in the path.#4

Merged
kzu merged 1 commit intodevlooped:masterfrom
nverwer:master
Jun 10, 2016
Merged

Speed-up determining the position of a node in the path.#4
kzu merged 1 commit intodevlooped:masterfrom
nverwer:master

Conversation

@nverwer
Copy link
Copy Markdown
Contributor

@nverwer nverwer commented Jun 10, 2016

When a node of a type that is tested by a schematron rule, has many (tens of thousands) preceding siblings (of the same type), determining the position among the siblings was slow. This made the computation of the <path> in the schematron report very slow.
The proposed change speeds up computing the <path> a lot. On one large file (~50000 items) the processing time went from 8 minutes to 10 seconds.

@kzu kzu merged commit a4abded into devlooped:master Jun 10, 2016
@kzu
Copy link
Copy Markdown
Member

kzu commented Jun 10, 2016

Awesome improvement!

@devlooped devlooped locked and limited conversation to collaborators Mar 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants