Closed nikku closed 1 month ago
Analysis, executing space tool, time until editor is responsive again:
Updated core modeling dependencies to use on board (browser) facilities for critical operations (clear
, closest
) - https://github.com/bpmn-io/diagram-js/pull/910, https://github.com/bpmn-io/bpmn-js/pull/2182.
Simplifying clear
was unfortunately a failed experiment.
Following up on the shallow analysis, here are some more details; using large-diagram.bpmn.txt as a test subject in different environments.
Uses the minimap which adds a 30% (!) toll on rendering :arrow_right: https://github.com/bpmn-io/diagram-js-minimap/issues/81; linting happens outside of update cycle, not the fastest, but manageable.
Uses the minimap and many custom extensions, resulting in a massive performance blow. The diagram can barely be edited. Kapa.ai integration is responsible for more than 50% of the performance hit, linting everything three times completes the picture :arrow_right: https://github.com/camunda/web-modeler/issues/9606.
elementTemplateLintRule
: 130msLinter#lint
: 300msDone. We can open individual issues.
Describe the bug
Working on a large BPMN diagram there is a slowness when completing modeling actions, cf.
large-diagram.bpmn.txt
.Steps to reproduce
large-diagram.bpmn.txt
Expected behavior
Environment
Additional context
Came up via internal feedback.