objectionary / objectionary/lints
`object-has-data` XSL transformation is too slow on large XMIR files
@volodya-lombrozo is already working on this.
Since Jun 24, 2026.
- Dominant language
- Java
- Stars
- 14
- Forks
- 39
- Avg merge
- 22h 54m
- Merged PRs (30d)
- 90
Description
I'm getting performance warnings when running lints against eo-runtime:
[WARNING] XSL transformation 'object-has-data' took 106ms, whereas threshold is 100ms
What happens: The selector //o[eo:has-data(.) and not(parent::o[@base='Φ.bytes'])] calls eo:has-data(.) on every <o> in the document. The function is normalize-space(string-join($o/text(), '')) != '', which materializes and concatenates all text node content for each element before any other predicate runs. On large XMIR files this is expensive.
What should happen: The transformation completes within the 100ms threshold. Placing the cheaper not(parent::o[@base='Φ.bytes']) predicate first would reduce the number of elements eo:has-data() is evaluated on.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.