objectionary / objectionary/lints
`incorrect-test-object-name` XSL transformation exceeds 100ms threshold 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 'incorrect-test-object-name' took 119ms, whereas threshold is 100ms
[WARNING] XSL transformation 'incorrect-test-object-name' took 107ms, whereas threshold is 100ms
What happens: For each test object (@name starting with +) the transformation calls eo:escape-plus(@name) (a user-defined function that manipulates the name string) and then matches(..., $regexp) where $regexp is a constant defined inside the for-each. On XMIR files with many test objects the per-element function-call overhead adds up.
What should happen: The transformation completes within the 100ms threshold. Moving $regexp to a top-level variable so Saxon can cache the compiled pattern, and avoiding the user-defined function call where a simple string operation suffices, would help.
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.