Skip to content

fix(#993): optimize anonymous-objects-inside-formation XSL transform - #1167

Open
ImilB wants to merge 1 commit into
objectionary:masterfrom
ImilB:fix--993
Open

fix(#993): optimize anonymous-objects-inside-formation XSL transform#1167
ImilB wants to merge 1 commit into
objectionary:masterfrom
ImilB:fix--993

Conversation

@ImilB

@ImilB ImilB commented Jul 30, 2026

Copy link
Copy Markdown

Closes #993

Root Cause
The performance bottleneck was the XPath selector:
//o[eo:abstract(.) and o[not(@name)]]

It called the user-defined function eo:abstract(.) for every <o> element, which is equivalent to not(exists(@base)).
This per-element function call, combined with scanning child elements (o[not(@name)]), caused significant overhead on large files.

Solution

Inlined the eo:abstract function and optimized the child element check.

…L transform

Signed-off-by: ImilB <kiwiyt09a@gmail.com>
@volodya-lombrozo

Copy link
Copy Markdown
Member

/benchmark

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ The /benchmark run failed. See the failed workflow run for details.

@volodya-lombrozo

Copy link
Copy Markdown
Member

@ImilB You need to rebase on the fresh master branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

anonymous-objects-inside-formation XSL transformation exceeds 100ms threshold on large XMIR files

2 participants