I was testing the performance of the modeling framework for huge files. Opening a bpmn model with around more then 500 tasks is taking time to load and once loaded moving tasks or connections takes times to render.
The image attached shows the time it took for the “tools:state-change” event to generate. This time gradually increases as the tasks in the model are increased.
I have run 1K 5K and 10K task tests.
Also is there any way to restrict the viewport to render only the view area and perform lazy loading?
The image attached shows the time it took for the “tools:state-change” event to generate. This time gradually increases as the tasks in the model are increased.
That is the expected behavior. We did not do any optimizations here. But huge diagrams will naturally slow down importing and rendering by a fair bit. You got other cost as well though, such as the fact that you will not be able to understand these diagrams anymore beyond a certain size.
Also is there any way to restrict the viewport to render only the view area and perform lazy loading?
Nope, that is not possible right now.
We may be able to look into specific issues, if you post them. Please include the samples, the toolkit version you use and your OS / hardware configuration.
I understand this is not an issue for the basic bpmn usecase. I am trying to use it for some extensive task.
Can you give me some pointers what could be causing this issue? The issue is happning when a diagram element is dropped on the canvas.
Any module if u can point me to , where i can look into and try to do some fix.
System Config :
Camunda Modeler : v1.2.0 (build 1467721604)
Node : v4.4.7
OS : Windows 10 64bit 8gig
Its while updating. When ever a element is moved/repositioned in the canvas, its getting all the diagram elements and itterating through. Do we need update the entire model?