Skip to content

Simplify context merging#70

Merged
nikku merged 3 commits intomainfrom
simplify-context-merging
Dec 4, 2025
Merged

Simplify context merging#70
nikku merged 3 commits intomainfrom
simplify-context-merging

Conversation

@nikku
Copy link
Owner

@nikku nikku commented Dec 3, 2025

Which issue does this PR address?

Related to #59 this PR yields significant performance enhancements in standard scenarios, for larger context sizes. Especially when context nesting happens then otherwise the parsing time rises exponentially.

Before

image

Overall test suite execution time: 3s

After

image

Overall test suite execution time: 300ms


As seen in 2e72fa7 this may be breaking with users of our internal extension points (overriding VariableContext). I'm still in process of validating this.

@nikku
Copy link
Owner Author

nikku commented Dec 3, 2025

As seen in 2e72fa7 this may be breaking with users of our internal extension points (overriding VariableContext). I'm still in process of validating this.

Verified 2e72fa7 is in fact not a breaking change: Old context executes with expected failures, fixed in this library via 2e72fa7, adjustments proposed downstream via bpmn-io/variable-resolver#62.

Still draft, as I'm adding additional test coverage and root causing the discrepancy between built-in and custom context parsing.

@nikku nikku force-pushed the simplify-context-merging branch from 2e72fa7 to 12ef561 Compare December 4, 2025 07:49
@nikku nikku self-assigned this Dec 4, 2025
@nikku nikku marked this pull request as ready for review December 4, 2025 07:51
@nikku nikku merged commit adda5db into main Dec 4, 2025
2 checks passed
@nikku nikku deleted the simplify-context-merging branch December 4, 2025 08:55
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.

1 participant